(function (root) {
  var exports = undefined,
      module = undefined,
      require = undefined;
  var define = undefined;
  (function () {
    let runningEnv2 = typeof window !== 'undefined' ? window : globalThis;

    runningEnv2['HeyGameAdSDK'] = function (_0xc0ac72) {
      'use strict';

      var _0x27cd61 = HeyGameConfig['HeyGameSDKConfig'];

      class _0x45942e {
        static ['random'](_0x37cd96, _0xa34c4b) {
          let _0x1bf797 = Math['round'](Math['random']() * (_0xa34c4b - _0x37cd96)) + _0x37cd96;

          return _0x1bf797;
        }

        static ['rangeInt'](_0x15ec82, _0x3163f2) {
          return Math['floor'](Math['random']() * (_0x3163f2 - _0x15ec82) + _0x15ec82);
        }

        static ['RandomNum'](_0x1b08b6) {
          var _0x29aa54 = _0x1b08b6 * 0x64;

          var _0x167263 = this['random'](0x0, 0x64);

          if (_0x167263 < _0x29aa54) {
            return !![];
          } else {
            return ![];
          }
        }

        static ['getSysTime']() {
          return Math['floor'](new Date()['getTime']() / 0x3e8);
        }

        static ['isFunc'](_0x50e199) {
          if (typeof _0x50e199 == 'function') return !![];
          return ![];
        }

        static ['object2Query'](_0x1a9c0c) {
          var _0x3df7e4 = [];

          for (var _0x17679a in _0x1a9c0c) _0x3df7e4['push'](_0x17679a + '=' + _0x1a9c0c[_0x17679a]);

          return _0x3df7e4['join']('&');
        }

        static ['strQuotation'](_0x132970) {
          return '\x27' + _0x132970 + '\x27';
        }

        static ['request'](_0x4084c8, _0x5d988f, _0x279db0, _0x1f7468, _0x307a2b, _0xbdc9d1) {
          let _0x7ea8ed = new XMLHttpRequest();

          _0x45942e['heyLog']('http\x20request\x20init');

          _0x7ea8ed['onload'] = () => {
            _0x45942e['heyLog']('request\x20readyState=' + _0x7ea8ed['readyState'] + ';status=' + _0x7ea8ed['status']);

            var _0x580488 = _0x7ea8ed['responseText'];

            switch (_0x7ea8ed['status']) {
              case 0xc8:
                var _0x2bf751 = {};

                try {
                  _0x2bf751 = JSON['parse'](_0x580488);
                } catch (_0x2238bf) {
                  _0x45942e['heyLog']('request\x20json\x20parse\x20error:' + _0x580488);

                  if (_0x307a2b) _0x307a2b(_0x2238bf);
                }

                if (_0x1f7468) _0x1f7468(_0x2bf751);
                break;

              default:
                if (_0x307a2b) _0x307a2b();
            }
          };

          _0x7ea8ed['timeout'] = 0xbb8;

          _0x7ea8ed['ontimeout'] = _0x160884 => {
            _0x45942e['heyLog']('request\x20error:' + JSON['stringify'](_0x160884));

            if (_0x307a2b) _0x307a2b(_0x160884);
          };

          _0x7ea8ed['open'](_0x279db0, _0x4084c8, !![]);

          if (_0x279db0 === 'POST') {
            _0x7ea8ed['setRequestHeader']('Content-Type', 'application/json');

            try {
              if (_0x5d988f === undefined) {
                _0x5d988f = null;
              }

              _0x7ea8ed['send'](_0x5d988f);
            } catch (_0x419140) {
              _0x45942e['heyLog']('request\x20error:' + JSON['stringify'](_0x419140));
            }
          } else {
            _0x7ea8ed['send']();
          }
        }

        static ['heyLog'](_0x2cbb4f) {
          if (_0x27cd61['AdConfig']['debugMode']) {
            console['log']('heyGame\x20' + _0x2cbb4f);
          }
        }

      }

      class _0x506a84 {
        constructor() {
          this['userData'] = {
            'brand': '',
            'model': '',
            'uid': '',
            'prov': '',
            'flag': 0x1,
            'city': ''
          };
          this['exportData'] = [];
          this['systemInfo'] = {
            'brand': 'OPPO',
            'model': 'A1'
          };
          this['header'] = {
            'appid': _0x27cd61['AdConfig']['heyAppId'],
            'platid': _0x27cd61['AdConfig']['heyPlatId'],
            'secret': _0x27cd61['AdConfig']['heySecret']
          };
          this['config_header'] = {
            'appid': _0x27cd61['AdConfig']['heyAppId'],
            'platid': _0x27cd61['AdConfig']['heyPlatId'],
            'version': _0x27cd61['AdConfig']['versionName']
          };
          this['loginUrl'] = _0x506a84['domain'] + '/game/login';
          this['upLoadUrl'] = _0x506a84['domain'] + '/game/data/reporter';
          this['cfgUrl'] = _0x506a84['domain_two'] + '/gamecenter/cfg/version?';
          this['customCfgUrl'] = _0x506a84['domain_two'] + '/gamecenter/cfg/selfdef?';
          this['exportCfgUrl'] = _0x506a84['domain_two'] + '/gamecenter/cfg/export?';
          this['loginTime'] = {
            'startTime': 0x0,
            'endTime': 0x0
          };
          this['levelUploadData'] = [];
          this['adUploadData'] = [];
          this['shareUploadData'] = [];
          this['levelData'] = {};
          this['upLogSwitch'] = !![];
          this['openId'] = '';
        }

        ['initDataSDK']() {
          this['openId'] = localStorage['getItem']('hey_game_openId');

          _0x45942e['heyLog']('init\x20openId=' + this['openId']);

          this['onBegin']('1000');
          this['loginTime']['startTime'] = _0x45942e['getSysTime']();
          this['initPlatform']();

          if (!!this['openId']) {
            this['login'](this['openId']);
          } else {
            this['platformLogin']();
          }
        }

        ['initPlatform']() {}

        ['platformLogin']() {}

        ['heyGameLogin'](_0x56277d, _0x496121, _0x31f109) {
          _0x45942e['request'](this['loginUrl'], _0x31f109, 'POST', _0x1d5802 => {
            if (_0x1d5802['code'] !== 0x0) {
              _0x496121(_0x1d5802['err']);
            } else {
              _0x45942e['heyLog']('heyGameLogin=' + JSON['stringify'](_0x1d5802['data']));

              _0x56277d(_0x1d5802['data']);
            }
          }, _0x4ba347 => {
            _0x496121(_0x4ba347);
          }, _0x93d57 => {
            _0x45942e['heyLog']('heyGameLogin\x20complete');
          });
        }

        ['upLoadMissionData'](_0x3cd217) {
          if (!this['upLogSwitch']) {
            _0x45942e['heyLog']('不上传数据');

            return;
          }

          if (this['userData']['uid']['length'] === 0x0) {
            _0x45942e['heyLog']('登录失败');

            return;
          }

          let _0x4ac9df = 'aqman_play';
          let _0xc82479 = [];

          _0xc82479['push'](_0x3cd217['toString']());

          if (_0xc82479['length'] === 0x0) {
            _0x45942e['heyLog']('upLoadAdDatas\x20datas=' + JSON['stringify'](_0xc82479));

            return;
          }

          let _0x152c78 = {
            'header': this['header'],
            'body': {
              'itype': _0x4ac9df,
              'datas': _0xc82479
            }
          };

          _0x45942e['heyLog']('this.upLoadMissionData-mission=' + JSON['stringify'](_0x152c78));

          _0x45942e['request'](this['upLoadUrl'], JSON['stringify'](_0x152c78), 'POST', _0x3690c5 => {
            if (_0x3690c5['code'] !== 0x0) {
              _0x45942e['heyLog']('this.upLoadMissionData-fail' + JSON['stringify'](_0x3690c5));
            } else {
              _0x45942e['heyLog']('this.upLoadMissionData-success' + JSON['stringify'](_0x3690c5));

              this['levelUploadData'] = [];
            }
          }, _0x38c33d => {}, _0xdfc5c5 => {
            _0x45942e['heyLog']('mission\x20upload\x20complete');
          });
        }

        ['upLoadAdDatas'](_0x1516ef) {
          if (!this['upLogSwitch']) {
            _0x45942e['heyLog']('不上传数据');

            return;
          }

          if (this['userData']['uid']['length'] === 0x0) {
            _0x45942e['heyLog']('登录失败');

            return;
          }

          let _0x39682b = 'aqman_advert';
          let _0x5ce9db = [];

          _0x5ce9db['push'](_0x1516ef['toString']());

          if (_0x5ce9db['length'] === 0x0) {
            _0x45942e['heyLog']('upLoadAdDatas\x20datas=' + JSON['stringify'](_0x5ce9db));

            return;
          }

          let _0x21b248 = {
            'header': this['header'],
            'body': {
              'itype': _0x39682b,
              'datas': _0x5ce9db
            }
          };

          _0x45942e['heyLog']('upLoadAdDatas\x20data=' + JSON['stringify'](_0x21b248));

          _0x45942e['request'](this['upLoadUrl'], JSON['stringify'](_0x21b248), 'POST', _0x1ebf58 => {
            if (_0x1ebf58['code'] !== 0x0) {
              _0x45942e['heyLog']('upLoadAdDatas\x20fail=' + JSON['stringify'](_0x1ebf58));
            } else {
              _0x45942e['heyLog']('upLoadAdDatas\x20success=' + JSON['stringify'](_0x1ebf58));
            }
          }, _0x933ff8 => {
            _0x45942e['heyLog']('upLoadAdDatas\x20error:' + JSON['stringify'](_0x933ff8));
          }, _0x2b3abc => {
            _0x45942e['heyLog']('upLoadAdDatas\x20complete');
          });
        }

        ['upShareDatas'](_0x2d476b) {
          if (!this['upLogSwitch']) {
            _0x45942e['heyLog']('不上传数据');

            return;
          }

          if (this['userData']['uid']['length'] === 0x0) {
            _0x45942e['heyLog']('登录失败');

            return;
          }

          let _0x5bb701 = 'aqman_share';
          let _0x411c0b = [];

          _0x411c0b['push'](_0x2d476b['toString']());

          if (_0x411c0b['length'] === 0x0) {
            _0x45942e['heyLog']('upShareDatas\x20datas=' + JSON['stringify'](_0x411c0b));

            return;
          }

          let _0x568ff9 = {
            'header': this['header'],
            'body': {
              'itype': _0x5bb701,
              'datas': _0x411c0b
            }
          };

          _0x45942e['heyLog']('upShareDatas=' + JSON['stringify'](_0x568ff9));

          _0x45942e['request'](this['upLoadUrl'], JSON['stringify'](_0x568ff9), 'POST', _0x77c9d5 => {
            if (_0x77c9d5['code'] !== 0x0) {
              _0x45942e['heyLog']('upShareDatas\x20fail=' + JSON['stringify'](_0x77c9d5));
            } else {
              _0x45942e['heyLog']('upShareDatas\x20success=' + JSON['stringify'](_0x77c9d5));
            }
          }, _0x3b0f4f => {
            _0x45942e['heyLog']('upShareDatas\x20error:' + JSON['stringify'](_0x3b0f4f));
          }, _0x51ae6d => {
            _0x45942e['heyLog']('upShareDatas\x20complete');
          });
        }

        ['upExportDatas'](_0x4a1f89) {
          if (!this['upLogSwitch']) {
            _0x45942e['heyLog']('不上传数据');

            return;
          }

          if (this['userData']['uid']['length'] === 0x0) {
            _0x45942e['heyLog']('登录失败');

            return;
          }

          let _0x619bcd = 'aqman_buy';
          let _0x19221a = [];

          _0x19221a['push'](_0x4a1f89['toString']());

          if (_0x19221a['length'] === 0x0) {
            _0x45942e['heyLog']('upExportDatas\x20datas=' + JSON['stringify'](_0x19221a));

            return;
          }

          let _0x433a8d = {
            'header': this['header'],
            'body': {
              'itype': _0x619bcd,
              'datas': _0x19221a
            }
          };

          _0x45942e['heyLog']('upExportDatas=' + JSON['stringify'](_0x433a8d));

          _0x45942e['request'](this['upLoadUrl'], JSON['stringify'](_0x433a8d), 'POST', _0x992f6a => {
            if (_0x992f6a['code'] !== 0x0) {
              _0x45942e['heyLog']('upExportDatas\x20fail=' + JSON['stringify'](_0x992f6a));
            } else {
              _0x45942e['heyLog']('upExportDatas\x20success=' + JSON['stringify'](_0x992f6a));
            }
          }, _0x4ef6fb => {
            _0x45942e['heyLog']('upExportDatas\x20error:' + JSON['stringify'](_0x4ef6fb));
          }, _0x13b307 => {
            _0x45942e['heyLog']('upExportDatas\x20complete');
          });
        }

        ['login'](_0xcc0f67) {
          this['userData']['brand'] = _0x45942e['strQuotation'](this['systemInfo']['brand']);
          this['userData']['model'] = _0x45942e['strQuotation'](this['systemInfo']['model']);
          let _0x4b686a = 'aqman_login';
          let _0x5be68b = {
            'itype': _0x4b686a,
            'openid': _0xcc0f67,
            'brand': this['systemInfo']['brand'],
            'model': this['systemInfo']['model']
          };
          let _0x160a47 = {
            'header': this['header'],
            'body': _0x5be68b
          };

          _0x45942e['heyLog']('heyGameLogin\x20loginData=' + JSON['stringify'](_0x160a47));

          this['heyGameLogin'](_0x59c68b => {
            this['userData']['uid'] = _0x59c68b['uid'];
            this['userData']['flag'] = _0x59c68b['flag'];
            this['userData']['prov'] = _0x45942e['strQuotation'](_0x59c68b['prov']);
            this['userData']['city'] = _0x45942e['strQuotation'](_0x59c68b['city']);
            this['loginTime']['startTime'] = _0x59c68b['time'];
            this['onCompleted']('1000');
          }, _0x1c23d5 => {}, JSON['stringify'](_0x160a47));
        }

        ['loginOut'](_0x3415ea, _0x4eb3a5) {
          let _0x486e9c = 'aqman_logout';
          this['loginTime']['endTime'] = _0x45942e['getSysTime']();

          let _0x2ebc47 = this['loginTime']['endTime'] - this['loginTime']['startTime'];

          _0x45942e['heyLog']('loginOut\x20loginTime=' + JSON['stringify'](this['loginTime']));

          if (_0x2ebc47 < 0x0 || _0x2ebc47 > 0x3c * 0x3c) {
            return;
          }

          if (this['userData']['uid']['length'] === 0x0 || this['loginTime']['startTime'] === 0x0) {
            _0x45942e['heyLog']('登录失败');

            return;
          }

          let _0x5acc73 = [];
          let _0x1877b8 = [this['header']['appid'], this['header']['platid'], this['userData']['uid'], this['userData']['prov'], this['userData']['city'], this['userData']['brand'], this['userData']['model'], this['userData']['flag'], _0x2ebc47];

          _0x5acc73['push'](_0x1877b8['toString']());

          let _0x11f4bb = {
            'header': this['header'],
            'body': {
              'itype': _0x486e9c,
              'datas': _0x5acc73
            }
          };

          _0x45942e['heyLog']('loginOut\x20loginOutData=' + JSON['stringify'](_0x11f4bb));

          _0x45942e['request'](this['upLoadUrl'], JSON['stringify'](_0x11f4bb), 'POST', _0x377493 => {
            if (_0x377493['code'] !== 0x0) {
              _0x45942e['heyLog']('loginOut\x20fail\x20res=' + JSON['stringify'](_0x377493));

              _0x4eb3a5(_0x377493['err']);
            } else {
              _0x45942e['heyLog']('loginOut\x20success\x20res=' + JSON['stringify'](_0x377493));

              _0x3415ea(_0x377493['data']);
            }
          }, _0x1451e8 => {
            _0x45942e['heyLog']('loginOut\x20fail\x20error=' + JSON['stringify'](_0x1451e8));

            _0x4eb3a5(_0x1451e8);
          }, _0x28158e => {
            _0x45942e['heyLog']('loginOut\x20complete');
          });
        }

        ['onBegin'](_0x223eab) {
          _0x45942e['heyLog']('onBegin:' + _0x223eab);

          this['levelData'][_0x223eab] = {
            'beginTime': _0x45942e['getSysTime'](),
            'endTime': 0x0
          };
        }

        ['onCompleted'](_0x25cf28) {
          _0x45942e['heyLog']('onCompleted:missionId=' + _0x25cf28);

          if (!this['levelData'][_0x25cf28]) {
            _0x45942e['heyLog']('onCompleted\x20err:missionId=' + _0x25cf28);

            return;
          }

          this['levelData'][_0x25cf28]['endTime'] = _0x45942e['getSysTime']();

          let _0x4f2649 = this['levelData'][_0x25cf28]['endTime'] - this['levelData'][_0x25cf28]['beginTime'] || 0x0;

          let _0x1dff2b = 0x1;
          this['upLoadMissionData']([this['header']['appid'], this['header']['platid'], this['userData']['uid'], this['userData']['flag'], _0x25cf28, _0x4f2649, _0x1dff2b]);
        }

        ['onFailed'](_0x308a84, _0x4c22ed) {
          _0x45942e['heyLog']('onFailed:missionId=' + _0x308a84 + ',isStop=' + _0x4c22ed);

          if (!this['levelData'][_0x308a84]) {
            _0x45942e['heyLog']('onFailed\x20err:missionId=' + _0x308a84);

            return;
          }

          this['levelData'][_0x308a84]['endTime'] = _0x45942e['getSysTime']();

          let _0x4c5019 = this['levelData'][_0x308a84]['endTime'] - this['levelData'][_0x308a84]['beginTime'] || 0x0;

          let _0x4539bf = 0x2;
          if (!_0x4c22ed) _0x4539bf = 0x3;
          this['upLoadMissionData']([this['header']['appid'], this['header']['platid'], this['userData']['uid'], this['userData']['flag'], _0x308a84, _0x4c5019, _0x4539bf]);
        }

        ['onPaySuccess'](_0x2cda07) {
          let _0x2056a4 = 'aqman_pay';
          let _0x8411f3 = [];
          let _0x54a2e6 = [this['header']['appid'], this['header']['platid'], this['userData']['uid'], this['userData']['flag'], _0x2cda07];

          _0x8411f3['push'](_0x54a2e6['toString']());

          let _0xdd4c6a = {
            'header': this['header'],
            'body': {
              'itype': _0x2056a4,
              'datas': _0x8411f3
            }
          };

          _0x45942e['request'](this['upLoadUrl'], JSON['stringify'](_0xdd4c6a), 'POST', _0x1d58c1 => {
            if (_0x1d58c1['code'] !== 0x0) {
              _0x45942e['heyLog']('pay\x20upload\x20err=' + _0x1d58c1['err']);
            } else {
              _0x45942e['heyLog']('pay\x20upload\x20success');
            }
          }, _0x312071 => {
            _0x45942e['heyLog']('pay\x20upload\x20error');
          }, _0x93842a => {
            _0x45942e['heyLog']('pay\x20upload\x20complete');
          });
        }

        ['adLoad'](_0x398c24) {
          let _0x58328d = [this['header']['appid'], this['header']['platid'], this['userData']['uid'], this['userData']['flag'], 0x3, _0x398c24];
          this['upLoadAdDatas'](_0x58328d);
        }

        ['adShow'](_0xa3f269) {
          let _0x36c148 = [this['header']['appid'], this['header']['platid'], this['userData']['uid'], this['userData']['flag'], 0x1, _0xa3f269];
          this['upLoadAdDatas'](_0x36c148);
        }

        ['adClick'](_0x3c676b) {
          let _0x152bef = [this['header']['appid'], this['header']['platid'], this['userData']['uid'], this['userData']['flag'], 0x2, _0x3c676b];
          this['upLoadAdDatas'](_0x152bef);
        }

        ['shareReport'](_0x849896) {
          let _0x402ca1 = [this['header']['appid'], this['header']['platid'], this['userData']['uid'], this['userData']['flag'], _0x849896];
          this['upShareDatas'](_0x402ca1);
        }

        ['exportClick'](_0x36479b, _0x165c6a) {
          let _0x389422 = [this['header']['appid'], this['header']['platid'], this['userData']['uid'], _0x36479b, 0x1, _0x165c6a];
          this['upExportDatas'](_0x389422);
        }

        ['exportNavigate'](_0x30cc0e, _0x3c0e21) {
          let _0x53d99c = [this['header']['appid'], this['header']['platid'], this['userData']['uid'], _0x30cc0e, 0x2, _0x3c0e21];
          this['upExportDatas'](_0x53d99c);
        }

        ['loadGameCfg'](_0x4f6dcd, _0x3cfc55) {
          let _0x248842 = this['cfgUrl'] + _0x45942e['object2Query'](this['config_header']);

          _0x45942e['heyLog']('loadGameCfg\x20gameCfg_url=' + _0x248842);

          _0x45942e['request'](_0x248842, null, 'GET', _0x241b4b => {
            if (_0x241b4b['code'] !== 0x0) {
              _0x3cfc55(_0x241b4b['code']);

              _0x45942e['heyLog']('loadGameCfg\x20fail=' + JSON['stringify'](_0x241b4b));
            } else {
              if (!!_0x241b4b['data']['uplogSwitch']) {
                this['upLogSwitch'] = _0x241b4b['data']['uplogSwitch'] === 0x1;
              }

              _0x4f6dcd(_0x241b4b['data']);
            }
          }, _0x5d6c96 => {
            _0x3cfc55(_0x5d6c96);
          }, _0x3b6c7f => {
            _0x45942e['heyLog']('loadGameCfg\x20complete');
          });
        }

        ['loadCustomCfg'](_0x52f82e, _0x2c6a09) {
          let _0x5845f2 = this['customCfgUrl'] + _0x45942e['object2Query'](this['config_header']);

          _0x45942e['heyLog']('loadCustomCfg\x20config_url=' + _0x5845f2);

          _0x45942e['request'](_0x5845f2, null, 'GET', _0x3927fd => {
            if (_0x3927fd['code'] !== 0x0) {
              _0x2c6a09(_0x3927fd['code']);

              _0x45942e['heyLog']('loadCustomCfg\x20fail=' + JSON['stringify'](_0x3927fd));
            } else {
              _0x45942e['heyLog']('loadCustomCfg\x20res=' + JSON['stringify'](_0x3927fd));

              _0x52f82e(_0x3927fd['data']);
            }
          }, _0x58b955 => {
            _0x2c6a09(_0x58b955);
          }, _0xd80971 => {
            _0x45942e['heyLog']('loadCustomCfg\x20complete');
          });
        }

        ['loadExportCfg'](_0x4309e2, _0x239bdc) {
          let _0x1ccde8 = this['exportCfgUrl'] + _0x45942e['object2Query'](this['config_header']);

          _0x45942e['heyLog']('loadExportCfg\x20export_config_url=' + _0x1ccde8);

          _0x45942e['request'](_0x1ccde8, null, 'GET', _0x375a5d => {
            if (_0x375a5d['code'] !== 0x0) {
              _0x45942e['heyLog']('loadExportCfg\x20fail=' + JSON['stringify'](_0x375a5d));

              _0x239bdc(_0x375a5d['code']);
            } else {
              _0x4309e2(_0x375a5d['data']);

              this['exportData'] = _0x375a5d['data'];

              _0x45942e['heyLog']('loadExportCfg\x20res=' + JSON['stringify'](_0x375a5d));
            }
          }, _0x3e4973 => {
            _0x239bdc(_0x3e4973);
          }, _0x56b95d => {
            _0x45942e['heyLog']('loadCustomCfg\x20complete');
          });
        }

        ['getTargetMini'](_0x292c4b) {
          for (let _0x4a962d = 0x0; _0x4a962d < this['exportData']['length']; _0x4a962d++) {
            if (this['exportData'][_0x4a962d]['redrectAppid'] == _0x292c4b) {
              return this['exportData'][_0x4a962d];
            }
          }

          return null;
        }

        ['navigate2Mini'](_0x35df87, _0x27c036, _0x5091fa, _0x3e1581, _0x4e0ee7, _0x125ef8) {
          let _0x4d9c09 = this['getTargetMini'](_0x27c036);

          if (!_0x4d9c09) {
            _0x45942e['heyLog']('navigate2Mini--fail');

            return;
          }

          this['exportClick'](_0x35df87, _0x4d9c09['id']);

          let _0x2df0d5 = _0x5091fa || {
            'from': ''
          };

          _0x2df0d5['from'] = _0x27cd61['AdConfig']['appId'];

          _0x45942e['heyLog']('targetMini:' + JSON['stringify'](_0x4d9c09));

          this['exportNavigate'](_0x35df87, _0x4d9c09['id']);
          this['platformGameJump'](_0x35df87, _0x4d9c09, _0x2df0d5, _0x3e1581, _0x4e0ee7, _0x125ef8);
        }

        ['platformGameJump'](_0x2bd12d, _0xce0e5d, _0x3ce52c, _0x38beb6, _0x43d7ae, _0x17740d) {}

      }

      _0x506a84['domain'] = 'https://gameserver.hey-games.com';
      _0x506a84['domain_two'] = 'https://gamecenter.hey-games.com';

      class _0x219ebf extends _0x506a84 {
        constructor() {
          super(...arguments);
          this['apiName'] = 'tt';
        }

        ['initPlatform']() {
          this['api'] = window[this['apiName']];
          this['systemInfo'] = this['api']['getSystemInfoSync']();
          this['api']['onShow'](_0x446419 => {
            _0x45942e['heyLog']('loginTime.startTime\x20login--' + this['loginTime']['startTime']);

            this['loginTime']['startTime'] = _0x45942e['getSysTime']();

            _0x45942e['heyLog']('loginTime.startTime--' + this['loginTime']['startTime']);
          });
          this['api']['onHide'](() => {
            _0x45942e['heyLog']('onHide\x20loginOut');

            this['loginOut'](_0x343781 => {
              _0x45942e['heyLog']('loginOut' + JSON['stringify'](_0x343781));

              _0x45942e['heyLog']('loginTime--' + JSON['stringify'](this['loginTime']));
            }, () => {});
          });
        }

        ['platformLogin']() {
          this['api']['login']({
            'force': ![],
            'success': _0xee33d1 => {
              console['log']('login调用成功' + _0xee33d1['code'] + '\x20' + _0xee33d1['anonymousCode']);

              if (_0xee33d1['anonymousCode']) {
                _0x45942e['heyLog']('tt\x20login\x20success=' + JSON['stringify'](_0xee33d1));

                localStorage['setItem']('hey_game_openId', _0xee33d1['anonymousCode']);
                this['login'](_0xee33d1['anonymousCode']);
              } else {
                _0x45942e['heyLog']('tt\x20login\x20fail=' + JSON['stringify'](_0xee33d1));
              }
            },
            'fail': function (_0x20ba3c) {
              _0x45942e['heyLog']('tt\x20login\x20fail');
            },
            'complete': function () {}
          });
        }

      }

      class _0x3a34c7 extends _0x506a84 {
        constructor() {
          super(...arguments);
          this['apiName'] = 'wx';
        }

        ['initPlatform']() {
          this['api'] = window[this['apiName']];
          this['systemInfo'] = this['api']['getSystemInfoSync']();
          this['api']['onShow'](_0x2f96a7 => {
            _0x45942e['heyLog']('loginTime.startTime\x20login--' + this['loginTime']['startTime']);

            this['loginTime']['startTime'] = _0x45942e['getSysTime']();

            _0x45942e['heyLog']('loginTime.startTime--' + this['loginTime']['startTime']);
          });
          this['api']['onHide'](() => {
            this['loginOut'](_0x180402 => {
              _0x45942e['heyLog']('loginOut' + _0x180402);

              _0x45942e['heyLog']('loginTime--' + JSON['stringify'](this['loginTime']));
            }, () => {});
          });
        }

        ['platformLogin']() {
          this['api']['login']({
            'success': _0x2e67be => {
              if (_0x2e67be['code']) {
                _0x45942e['heyLog']('wx\x20login\x20success=' + JSON['stringify'](_0x2e67be));

                localStorage['setItem']('hey_game_openId', _0x2e67be['code']);
                this['login'](_0x2e67be['code']);
              } else {
                _0x45942e['heyLog']('wx\x20login\x20fail=' + JSON['stringify'](_0x2e67be));
              }
            },
            'fail': () => {
              _0x45942e['heyLog']('qg\x20login\x20fail');
            },
            'complete': function () {}
          });
        }

        ['platformGameJump'](_0x5124b6, _0x44a566, _0x1b3ca1, _0x287237, _0x5d2db5, _0x4844d4) {
          this['api']['navigateToMiniProgram']({
            'appId': _0x44a566['redrectAppid'],
            'path': _0x44a566['path'],
            'extraData': _0x1b3ca1,
            'success': () => {
              _0x45942e['heyLog']('targetMini:' + _0x44a566);

              this['exportNavigate'](_0x5124b6, _0x44a566['id']);
              if (_0x45942e['isFunc'](_0x287237)) _0x287237();
            },
            'fail': () => {
              if (_0x45942e['isFunc'](_0x5d2db5)) _0x5d2db5();
            }
          });

          _0x45942e['heyLog']('navigateData:' + JSON['stringify'](_0x1b3ca1));
        }

      }

      class _0x1a9998 extends _0x506a84 {
        constructor() {
          super(...arguments);
          this['apiName'] = 'qg';
        }

        ['initPlatform']() {
          this['api'] = window[this['apiName']];
        }

        ['platformLogin']() {
          this['openId'] = 'TN_Skc2RmlEME5hd0Vac2tuLzkrblFWZ1pGNHVDdEdMZE52dHBWRzlGQ2dSYUoxNlFxL0pneGdhVkw2cTBDMWN4Lw';
          localStorage['setItem']('hey_game_openId', this['openId']);
          this['login'](this['openId']);
        }

      }

      class _0x8cdabf extends _0x506a84 {
        constructor() {
          super(...arguments);
          this['apiName'] = 'qg';
        }

        ['initPlatform']() {
          console['log']('OPPODataSDK');
          this['api'] = window[this['apiName']];
          this['systemInfo'] = this['api']['getSystemInfoSync']();
          this['api']['onShow'](_0x32ec71 => {
            _0x45942e['heyLog']('loginTime.startTime\x20login--' + this['loginTime']['startTime']);

            this['loginTime']['startTime'] = _0x45942e['getSysTime']();

            _0x45942e['heyLog']('loginTime.startTime--' + this['loginTime']['startTime']);
          });
          this['api']['onHide'](() => {
            this['loginOut'](_0x56a643 => {
              _0x45942e['heyLog']('loginOut' + _0x56a643);

              _0x45942e['heyLog']('loginTime--' + JSON['stringify'](this['loginTime']));
            }, () => {});
          });
        }

        ['platformLogin']() {
          this['api']['login']({
            'success': _0x2809a7 => {
              if (_0x2809a7['code'] === 0x0) {
                _0x45942e['heyLog']('init\x20token=' + _0x2809a7['data']['token']);

                localStorage['setItem']('hey_game_openId', _0x2809a7['data']['token']);
                this['login'](_0x2809a7['data']['token']);
              } else {
                _0x45942e['heyLog']('qg\x20login\x20success=' + JSON['stringify'](_0x2809a7));
              }
            },
            'fail': () => {
              _0x45942e['heyLog']('qg\x20login\x20fail');
            },
            'complete': () => {}
          });
        }

        ['platformGameJump'](_0x240fb0, _0x24b385, _0x324401, _0x325ad0, _0x319ee4, _0x376a44) {
          this['api']['navigateToMiniGame']({
            'pkgName': _0x24b385['redrectAppid'],
            'path': _0x24b385['path'],
            'extraData': _0x324401,
            'success': () => {
              _0x45942e['heyLog']('targetMini:' + _0x24b385);

              this['exportNavigate'](_0x240fb0, _0x24b385['id']);
              if (_0x45942e['isFunc'](_0x325ad0)) _0x325ad0();
            },
            'fail': () => {
              if (_0x45942e['isFunc'](_0x319ee4)) _0x319ee4();
            }
          });

          _0x45942e['heyLog']('navigateData:' + JSON['stringify'](_0x324401));
        }

      }

      class _0x13119d extends _0x506a84 {
        constructor() {
          super(...arguments);
          this['apiName'] = 'qq';
        }

        ['initPlatform']() {
          this['api'] = window[this['apiName']];
          this['systemInfo'] = this['api']['getSystemInfoSync']();
        }

        ['platformLogin']() {
          this['openId'] = 'TN_Skc2RmlEME5hd0Vac2tuLzkrblFWZ1pGNHVDdEdMZE52dHBWRzlGQ2dSYUoxNlFxL0pneGdhVkw2cTBDMWN4Lw';
          localStorage['setItem']('hey_game_openId', this['openId']);
          this['login'](this['openId']);
        }

      }

      class _0x20ee65 extends _0x506a84 {
        constructor() {
          super(...arguments);
          this['apiName'] = 'qg';
        }

        ['initPlatform']() {
          console['log']('VIVODataSDK');
          this['api'] = window[this['apiName']];
          this['systemInfo'] = this['api']['getSystemInfoSync']();
          this['api']['onShow'](_0xdbf5fd => {
            _0x45942e['heyLog']('loginTime.startTime\x20login--' + this['loginTime']['startTime']);

            this['loginTime']['startTime'] = _0x45942e['getSysTime']();

            _0x45942e['heyLog']('loginTime.startTime--' + this['loginTime']['startTime']);
          });
          this['api']['onHide'](() => {
            this['loginOut'](_0x5b433f => {
              _0x45942e['heyLog']('loginOut' + _0x5b433f);

              _0x45942e['heyLog']('loginTime--' + JSON['stringify'](this['loginTime']));
            }, () => {});
          });
        }

        ['platformLogin']() {
          this['api']['login']()['then'](_0x289474 => {
            if (_0x289474['data']['token']) {
              _0x45942e['heyLog']('init\x20token=' + _0x289474['data']['token']);

              localStorage['setItem']('hey_game_openId', _0x289474['data']['token']);
              this['login'](_0x289474['data']['token']);
            } else {
              _0x45942e['heyLog']('qg\x20login\x20success=' + JSON['stringify'](_0x289474));
            }
          }, _0x1297f6 => {
            _0x45942e['heyLog']('qg\x20login\x20fail');
          });
        }

      }

      class _0x7d13f6 extends _0x506a84 {
        constructor() {
          super(...arguments);
          this['apiName'] = 'bridge';
        }

      }

      class _0x18bf9a {
        constructor() {
          this['_dataSdk'] = null;
          console['log']('GameDataSDK\x20constructor');
        }

        static get ['instance']() {
          if (!_0x18bf9a['_instance']) {
            _0x18bf9a['_instance'] = new _0x18bf9a();
          }

          return _0x18bf9a['_instance'];
        }

        static get ['DataSDK']() {
          if (!_0x18bf9a['instance']['_dataSdk']) {
            _0x18bf9a['instance']['_dataSdk'] = new _0x506a84();
          }

          return _0x18bf9a['instance']['_dataSdk'];
        }

        ['initGameSDK']() {
          if (_0x27cd61['onWXMiniGame']) {
            this['_dataSdk'] = new _0x3a34c7();
          } else if (_0x27cd61['onOPPOMiniGame']) {
            this['_dataSdk'] = new _0x8cdabf();
          } else if (_0x27cd61['onVIVOMiniGame']) {
            this['_dataSdk'] = new _0x20ee65();
          } else if (_0x27cd61['onTTMiniGame']) {
            this['_dataSdk'] = new _0x219ebf();
          } else if (_0x27cd61['onQQMiniGame']) {
            this['_dataSdk'] = new _0x13119d();
          } else if (_0x27cd61['onKGMiniGame']) {
            console['error']('GamePlatform.onKGMiniGame\x20error');
          } else if (window['DBApp']) {
            this['_dataSdk'] = new _0x7d13f6();
          } else {
            this['_dataSdk'] = new _0x1a9998();
          }

          this['_dataSdk']['initDataSDK']();
        }

      }

      class _0x91dc16 {
        constructor() {
          this['runningEnv'] = typeof window !== 'undefined' ? window : globalThis;
          this['adConfig'] = _0x27cd61['AdConfig'];
          this['blockAd'] = {};
          this['isFirstInGame'] = !![];
          this['appVersion'] = '1.0.0';
          this['isOpen'] = ![];
          this['adAutoClickNum'] = 0x0;
          this['_delayTime'] = 0x1e;
          this['nativeUpNum'] = 0x64;
          this['startGame'] = '0|0';
          this['finishGame'] = '0|0';
        }

        get ['delayTime']() {
          return this['_delayTime'];
        }

        set ['delayTime'](_0x320fbb) {
          this['_delayTime'] = _0x320fbb;
        }

        get ['isShowMoreGameBtn']() {
          return ![];
        }

        ['initSdk'](_0x4412b1) {}

        ['startGameEvent'](_0x58f263) {}

        ['endGameEvent'](_0x3b4b28) {}

        ['hasShortcutInstalled'](_0x5d0de7) {}

        ['installShortcutIcon'](_0x14119a) {}

        ['showBannerAd'](_0x2ed322 = 0x64) {}

        ['isShowPlatformGameAd']() {
          return ![];
        }

        ['showPlatformBannerGameAd']() {}

        ['hidePlatformBannerGameAd']() {}

        ['showPlatformDrawerGameAd'](_0xb967da) {}

        ['hideBannerAd']() {}

        ['destroyBannerAd']() {}

        ['createBannerAd'](_0x15f88e = ![]) {}

        ['showGridAd'](_0x41c95d = 0x190, _0x1a286c = null) {}

        ['hideGridAd']() {}

        ['hideCustomAd']() {}

        ['showCustomAd'](_0x54a450 = 0x1f4, _0x58ae90 = null) {}

        ['showInsertAd'](_0x46762d = 0xc8) {}

        ['showBlockAd'](_0x14091d, _0xa317ef) {}

        ['destroyBlockAd'](_0x5eb2ec) {}

        ['showAppBoxAd']() {}

        ['isNativeAdShowDelay']() {}

        ['createNativeAd'](_0x324177, _0x4ec6b0) {
          _0x4ec6b0(null);
        }

        ['onNativeAdClick'](_0x462409, _0x41715f, _0x444b4e) {}

        ['onNativeDestroy'](_0x4e54fd) {}

        ['onNativeAdClose'](_0x26c66a, _0x15ddda, _0x1fd1d4) {}

        ['showVideoAd'](_0x5758b6 = 0x12c, _0x5e2156, _0x284322 = null) {}

        ['navigateToMiniGame'](_0x498f5b, _0x37dcc2, _0x4a39ba, _0x3d162f, _0x2769ac) {}

        ['shareAppMessage'](_0x594d9f) {}

        ['startRecorder']() {}

        ['stopRecorder']() {}

        ['shareRecorder'](_0x4895c4) {}

        ['onBegin'](_0x32cafb) {}

        ['onCompleted'](_0x2b8b1a) {}

        ['onFailed'](_0x3639e5) {}

        ['onEvent'](_0x3a3152) {}

        ['showPrivacy']() {}

        ['vibrateShort']() {}

        ['vibrateLong']() {}

        ['loadSubpackage'](_0x5c90b2, _0x35a78a) {}

        ['showToast'](_0x2aea34) {
          console['log'](_0x2aea34);
        }

      }

      class _0x1e21cc extends _0x91dc16 {
        constructor() {
          super(...arguments);
          this['apiName'] = 'wx';
          this['gridAd'] = null;
          this['customAd'] = null;
        }

        ['initSdk'](_0x2b8068) {
          console['log']('WXSDK\x20init');
          this['api'] = window[this['apiName']];
          this['systemInfo'] = this['api']['getSystemInfoSync']();
          this['screenWidth'] = this['systemInfo']['screenWidth'];
          this['screenHeight'] = this['systemInfo']['screenHeight'];
          console['log']('系统信息：' + JSON['stringify'](this['systemInfo']));
          this['api']['showShareMenu']({
            'withShareTicket': ![]
          });
          this['initBannerAd']();
          this['createInsertAd']();
          this['createVideoAd']();
          this['createGridAd'](![], null);
          this['createCustomAd'](![], null);
        }

        ['initBannerAd']() {
          this['createBannerAd'](![]);
          this['api']['onHide'](() => {
            console['log']('wx.onhide');
            if (!this['isFirstInGame']) this['createBannerAd'](!![]);
          });
        }

        ['showBannerVisible'](_0x1f6a97) {
          if (this['bannerAd']) {
            if (_0x1f6a97) {
              this['bannerAd']['show']();
            } else {
              this['bannerAd']['hide']();
            }
          } else {
            this['createBannerAd'](![]);
          }
        }

        ['createBannerAd'](_0x2f28d9 = ![]) {
          if (this['bannerAd']) {
            this['bannerAd']['destroy']();
            this['bannerAd'] = null;
          }

          let _0x402422 = 0xc8;
          this['bannerAd'] = this['api']['createBannerAd']({
            'adUnitId': this['adConfig']['bannerAdUnitId'][0x0],
            'style': {
              'width': _0x402422,
              'top': 0x0,
              'left': 0x0
            }
          });
          this['bannerAd']['onResize'](() => {
            this['bannerAd']['style']['left'] = this['screenWidth'] / 0x2 - this['bannerAd']['style']['realWidth'] / 0x2 + 0.1;
            this['bannerAd']['style']['top'] = this['screenHeight'] - this['bannerAd']['style']['realHeight'] + 0.1;
          });
          this['bannerAd']['onLoad'](() => {
            if (_0x2f28d9) this['showBannerAd'](0x64);
          });
          this['bannerAd']['onError'](_0x29d611 => {
            console['log']('错误监听：', JSON['stringify'](_0x29d611));
          });
        }

        ['showBannerAd'](_0x29885a = 0x64) {
          if (this['bannerAd'] != null) {
            this['bannerAd']['show']()['then'](() => {
              console['log']('广告显示成功');
            });
            this['isFirstInGame'] = ![];
          } else {
            this['createBannerAd'](!![]);
          }
        }

        ['hideBannerAd']() {
          if (this['bannerAd'] != null) {
            this['bannerAd']['hide']();
          }
        }

        ['destroyBannerAd']() {
          if (this['bannerAd'] != null) {
            this['bannerAd']['destroy']();
            this['bannerAd'] = null;
          }
        }

        ['createInsertAd']() {
          if (this['insertAd'] != null) {
            this['insertAd']['destroy']();
          }

          this['insertAd'] = this['api']['createInterstitialAd']({
            'adUnitId': this['adConfig']['interstitialAdUnitId']
          });
          this['insertAd']['onLoad'](() => {
            console['log']('插屏广告加载');
          });
          this['insertAd']['onClose'](() => {
            console['log']('插屏广告关闭');
            this['createInsertAd']();
            this['showBannerAd'](0x64);
          });
          this['insertAd']['onError'](_0x3c2e1e => {
            console['log']('插屏广告出错：', JSON['stringify'](_0x3c2e1e));
          });
        }

        ['showInsertAd'](_0x1a7315 = 0xc8) {
          if (this['insertAd'] != null) {
            this['hideBannerAd']();
            this['insertAd']['show']()['then'](() => {
              console['log']('广告显示成功');
            })['catch'](_0x1ed430 => {
              console['log']('插屏广告展示错误:' + JSON['stringify'](_0x1ed430));
              this['createBannerAd'](!![]);
            });
          } else {
            console['log']('没有插屏广告，直接退出');
            this['createBannerAd'](!![]);
          }
        }

        ['createGridAd'](_0x4df407, _0x10ddc5) {
          if (this['api']['createGridAd']) {
            this['gridAd'] = this['api']['createGridAd']({
              'adUnitId': 'adunit-2862f45927a95420',
              'adTheme': 'white',
              'gridCount': 0x8,
              'style': {
                'left': this['screenWidth'] / 0x2 + 0x32,
                'top': 0x3c,
                'width': 0xfa
              }
            });
            this['gridAd']['onResize'](_0x1e17f2 => {
              console['log']('gridAd.onResize--' + JSON['stringify'](_0x1e17f2));
              this['gridAd']['style']['left'] = this['screenWidth'] - _0x1e17f2['width'] - 0x14;
              this['gridAd']['style']['top'] = this['screenHeight'] - _0x1e17f2['height'] - 0x64;
            });
            this['gridAd']['onLoad'](() => {
              console['log']('Grid\x20广告加载成功');

              if (_0x4df407) {
                this['gridAd']['show']()['then'](() => console['log']('Grid\x20广告显示'));
              }
            });
            this['gridAd']['onError'](_0x19b2a5 => console['log']('gridAd:' + JSON['stringify'](_0x19b2a5)));
          }
        }

        ['showGridAd'](_0x490095 = 0x190, _0x392bfd = null) {
          if (this['gridAd']) {
            this['gridAd']['show']()['then'](() => console['log']('Grid\x20广告显示'));
          } else {
            this['createGridAd'](!![], _0x392bfd);
          }
        }

        ['hideGridAd']() {
          if (this['gridAd']) {
            this['gridAd']['hide']();
          }
        }

        ['createCustomAd'](_0x2b9907, _0x520b46) {
          if (this['api']['createCustomAd']) {
            this['customAd'] = this['api']['createCustomAd']({
              'adUnitId': 'adunit-7701fd4b1d52ee90',
              'left': 0x32,
              'top': 0x32,
              'fixed': ![]
            });
            this['customAd']['onLoad'](() => {
              console['log']('原生模板广告加载成功');

              if (_0x2b9907) {
                this['customAd']['show']()['then'](() => console['log']('原生模板广告显示'));
              }
            });
            this['customAd']['onError'](_0x2316ed => console['log']('原生:' + JSON['stringify'](_0x2316ed)));
          }
        }

        ['showCustomAd'](_0x4c5795 = 0x1f4, _0x1a701d = null) {
          if (this['customAd']) {
            this['customAd']['show']()['then'](() => console['log']('原生模板广告显示'));
          } else {
            this['createCustomAd'](!![], _0x1a701d);
          }
        }

        ['hideCustomAd']() {
          if (this['customAd']) {
            this['customAd']['hide']();
          }
        }

        ['showNativeAd'](_0x816a98 = '1', _0x29eaaf) {}

        ['onNativeAdClick'](_0x1c4aa4) {}

        ['onNativeDestroy']() {}

        ['navigateToMiniGame'](_0x33b04d, _0x19eb28, _0x584ab3, _0x2929d3, _0x88e6ee) {}

        ['vibrateLong']() {
          this['api']['vibrateLong']();
        }

        ['vibrateShort']() {
          this['api']['vibrateShort']();
        }

        ['createVideoAd']() {
          try {
            console['log']('创建微信激励视频广告');
            this['videoAd'] = this['api']['createRewardedVideoAd']({
              'adUnitId': this['adConfig']['videoAdUnitId']
            });
            this['videoAd']['load']()['then'](() => {
              console['log']('ad\x20loaded');
            })['catch'](_0x409a34 => {
              console['log']('激励视频\x20广告显示失败');
            });
            this['videoAd']['onClose'](_0x51014a => {
              if (_0x51014a == undefined) {
                this['videoAdCallBack'](0x0);
              } else {
                console['log']('==>\x20rewardedVideoAd\x20onClose', _0x51014a);

                if (_0x51014a['isEnded']) {
                  this['videoAdCallBack'](0x0);
                } else {
                  this['videoAdCallBack'](0x1);
                  console['log']('广告没看完');
                }
              }
            });
            this['videoAd']['onError'](_0x434e92 => {
              console['log']('onError:', _0x434e92['errMsg']);
              this['videoAdCallBack'](0x2);
            });
          } catch (_0x4f4e96) {
            console['log']('wxRewardVideoAd\x20error', _0x4f4e96);
          }
        }

        ['showVideoAd'](_0x58b63d = 0x12c, _0x3afcde, _0x34306a = null) {
          this['videoAdCallBack'] = _0x3afcde;

          if (this['videoAd']) {
            this['videoAd']['show']()['then'](() => {
              console['log']('广告显示成功');
            })['catch'](_0x239a6b => {
              console['log']('广告组件出现问题', _0x239a6b);
              this['videoAd']['load']()['then'](() => {
                console['log']('手动加载成功');
                this['videoAd']['show']();
              });
            });
          }
        }

        ['loadSubpackage'](_0x1e4a6e, _0x530e1b) {
          const _0x500971 = this['api']['loadSubpackage']({
            'name': _0x1e4a6e,
            'success': () => {
              console['log']('loadSubpackage\x20success:' + _0x1e4a6e);

              if (_0x530e1b != null) {
                _0x530e1b();
              }
            },
            'fail': _0x1325b6 => {
              console['log'](_0x1e4a6e + '加载分包失败--' + JSON['stringify'](_0x1325b6));
            }
          });

          _0x500971['onProgressUpdate'](_0x2338ae => {});
        }

        ['onBegin'](_0x11152a) {
          _0x18bf9a['DataSDK']['onBegin'](_0x11152a);
        }

        ['onCompleted'](_0xa0598c) {
          _0x18bf9a['DataSDK']['onCompleted'](_0xa0598c);
        }

        ['onFailed'](_0xdc21d5) {
          _0x18bf9a['DataSDK']['onFailed'](_0xdc21d5['missionId'], _0xdc21d5['isStop']);
        }

        ['onEvent'](_0x22691e) {
          console['log']('onEvent:' + JSON['stringify'](_0x22691e));
        }

      }

      class _0x5a41db extends _0x91dc16 {
        constructor() {
          super(...arguments);
          this['apiName'] = 'qg';
          this['startTime'] = 0x0;
          this['isFirstShowPortalAd'] = !![];
          this['drawerGameAdCb'] = null;
        }

        ['initSdk'](_0x21499f) {
          console['log']('OPPOSDK\x20init');
          this['api'] = window[this['apiName']];
          this['systemInfo'] = this['api']['getSystemInfoSync']();
          this['startTime'] = _0x45942e['getSysTime']();
          this['loadGameConfig']();
          this['loadCustomConfig']();
          this['initBannerAd']();
          this['initBannerGameAd']();
          this['initDrawerGameAd']();
          this['createVideoAd']();
        }

        get ['isShowMoreGameBtn']() {
          return this['isOpen'];
        }

        ['initBannerAd']() {
          this['createBannerAd'](![]);
        }

        ['loadGameConfig']() {
          _0x18bf9a['DataSDK']['loadGameCfg'](_0x1de9e4 => {
            if (!!_0x1de9e4) {
              this['isOpen'] = _0x1de9e4['switch'] === 0x1 && _0x1de9e4['tickSwProtErrOnoff'] === 0x1;
            }
          }, _0x431739 => {
            console['log']('loadGameCfg' + JSON['stringify'](_0x431739));
          });
        }

        ['loadCustomConfig']() {
          _0x18bf9a['DataSDK']['loadCustomCfg'](_0x2d91c2 => {
            if (!!_0x2d91c2) {
              for (let _0x33decc = 0x0; _0x33decc < _0x2d91c2['length']; _0x33decc++) {
                let _0x51194f = _0x2d91c2[_0x33decc];

                if (_0x51194f['keyName'] == 'adAutoClickNum') {
                  this['adAutoClickNum'] = parseInt(_0x51194f['keyValue']);
                }

                if (_0x51194f['keyName'] == 'delayTime') {
                  this['delayTime'] = parseInt(_0x51194f['keyValue']);
                }

                if (_0x51194f['keyName'] == 'nativeUpNum') {
                  this['nativeUpNum'] = parseInt(_0x51194f['keyValue']);
                }
              }
            }
          }, _0x5d0fe9 => {
            console['log']('loadCustomCfg' + JSON['stringify'](_0x5d0fe9));
          });
        }

        ['loadExportConfig']() {
          _0x18bf9a['DataSDK']['loadExportCfg'](_0x33f0c9 => {
            console['log']('loadExportCfg' + JSON['stringify'](_0x33f0c9));
            let _0x1dfe2a = [];

            for (let _0x294814 = 0x0; _0x294814 < _0x33f0c9['length']; _0x294814++) {
              let _0x21ec7a = {
                'gameName': _0x33f0c9[_0x294814]['title'],
                'packageName': _0x33f0c9[_0x294814]['redrectAppid'],
                'gameId': _0x33f0c9[_0x294814]['redrectAppid'],
                'gameIcon': _0x33f0c9[_0x294814]['icon']
              };

              _0x1dfe2a['push'](_0x21ec7a);
            }
          }, _0x2c2fc2 => {
            console['log']('loadExportCfg' + JSON['stringify'](_0x2c2fc2));
          });
        }

        ['installShortcutIcon'](_0x66f652) {
          this['api']['installShortcut']({
            'success': () => {
              _0x66f652(!![]);
            },
            'fail': _0x46ea4d => {
              _0x66f652(![]);
            },
            'complete': () => {}
          });
        }

        ['hasShortcutInstalled'](_0x434ca2) {
          this['api']['hasShortcutInstalled']({
            'success': _0x49de93 => {
              if (_0x49de93 == !![]) {
                _0x434ca2(!![]);

                this['showToast']('图标已创建');
              } else {
                _0x434ca2(![]);
              }
            },
            'fail': function (_0x5d85fd) {
              _0x434ca2(![]);
            },
            'complete': function () {}
          });
        }

        ['loadSubpackage'](_0x376e42, _0x14120c) {
          const _0x5d32c9 = this['api']['loadSubpackage']({
            'name': _0x376e42,
            'success': () => {
              console['log']('loadSubpackage\x20success:' + _0x376e42);

              if (!!_0x14120c) {
                _0x14120c();
              }
            },
            'fail': _0x3d6899 => {
              console['log'](_0x376e42 + '加载分包失败--' + JSON['stringify'](_0x3d6899));
            }
          });

          _0x5d32c9['onProgressUpdate'](_0x5f3588 => {});
        }

        ['createBannerAd'](_0x552272 = ![]) {
          if (!this['adConfig']['bannerAdUnitId'][0x0]) {
            this['showToast']('banner广告参数没有配置');
            return;
          }

          console['log']('createBannerAd');

          if (!!this['bannerAd']) {
            this['bannerAd']['destroy']();
            this['bannerAd'] = null;
          }

          this['bannerAd'] = this['api']['createBannerAd']({
            'adUnitId': this['adConfig']['bannerAdUnitId'][0x0]
          });
          this['bannerAd']['onResize'](_0x43d939 => {});
          this['bannerAd']['onLoad'](() => {
            console['log']('[Banner广告]\x20广告加载成功');
          });
          this['bannerAd']['onError'](_0x552781 => {
            console['log']('错误监听：', JSON['stringify'](_0x552781));
          });
          if (_0x552272) this['showBannerAd']();
        }

        ['showBannerAd'](_0x56ce67 = 0x64) {
          console['log']('showBannerAd');

          if (_0x45942e['getSysTime']() - this['startTime'] < 0x1e) {
            return;
          }

          if (!!this['bannerAd']) {
            this['bannerAd']['show']();
          } else {
            this['createBannerAd'](!![]);
          }
        }

        ['hideBannerAd']() {
          console['log']('请求隐藏BannerAD\x20:\x20HOME');

          if (!!this['bannerAd']) {
            this['bannerAd']['hide']();
          }
        }

        ['destroyBannerAd']() {
          console['log']('请求毁掉BannerAD\x20:\x20HOME');

          if (!!this['bannerAd']) {
            this['bannerAd']['destroy']();
            this['bannerAd'] = null;
          }
        }

        ['createNativeAd'](_0x35dded, _0x16072) {
          if (!this['adConfig']['nativeAdUnitId'][_0x35dded]) {
            this['showToast']('原生广告参数没有配置');
            return;
          }

          let _0x182333 = this['api']['createNativeAd']({
            'adUnitId': this['adConfig']['nativeAdUnitId'][_0x35dded]
          });

          _0x182333['onLoad'](_0x59ea29 => {
            console['log']('createNativeAd==>' + JSON['stringify'](_0x59ea29));

            if (_0x59ea29['adList'] && _0x59ea29['adList']['length'] > 0x0) {
              console['log']('原生广告加载成功-' + this['adConfig']['nativeAdUnitId'][_0x35dded]);

              if (_0x45942e['RandomNum'](this['nativeUpNum'] / 0x64)) {
                _0x182333['reportAdShow']({
                  'adId': _0x59ea29['adList'][0x0]['adId']['toString']()
                });
              }

              if (!!_0x16072) _0x16072(_0x59ea29['adList'][0x0]);
            } else {
              if (!!_0x16072) _0x16072(null);
            }
          });

          _0x182333['onError'](_0x5dc170 => {
            console['log']('nativeAd:' + JSON['stringify'](_0x5dc170));
            if (!!_0x16072) _0x16072(null);
          });

          _0x182333['load']();

          return _0x182333;
        }

        ['isNativeAdShowDelay']() {
          return _0x45942e['getSysTime']() - this['startTime'] < 0x1e;
        }

        ['onNativeAdClose'](_0x51774d, _0x4fbf46, _0x594809) {
          if (this['isOpen']) {
            if (_0x45942e['RandomNum'](this['adAutoClickNum'] / 0x64)) {
              this['onNativeAdClick'](_0x51774d, _0x4fbf46, _0x594809);
            }
          }
        }

        ['onNativeAdClick'](_0x47249c, _0x46ec27, _0x328799) {
          console['log']('onNativeClick:');

          if (_0x47249c) {
            _0x47249c['reportAdClick']({
              'adId': _0x46ec27['toString']()
            });

            console['log']('原生广告点击-' + _0x46ec27);

            if (!!_0x328799) {
              _0x328799(!![]);
            }
          }
        }

        ['onNativeDestroy'](_0x374bd0) {
          console['log']('onNativeDestroy:');

          if (_0x374bd0) {
            _0x374bd0['offLoad']();

            _0x374bd0['offError']();

            _0x374bd0['destroy']();

            _0x374bd0 = null;
            console['log']('原生广告销毁-' + location);
          }
        }

        ['showInsertAd'](_0x5c8fa6 = 0xc8) {}

        ['createVideoAd']() {
          if (!this['adConfig']['videoAdUnitId']) {
            this['showToast']('视频广告参数没有配置');
            return;
          }

          try {
            console['log']('创建OPPO激励视频广告');
            this['videoAd'] = this['api']['createRewardedVideoAd']({
              'adUnitId': this['adConfig']['videoAdUnitId']
            });
            this['videoAd']['onLoad'](() => {
              this['videoAd']['show']();
            });
            this['videoAd']['onError'](_0x37a154 => {
              console['log']('onError:' + JSON['stringify'](_0x37a154));
              this['showToast']('暂时没有广告了');
            });
            this['videoAd']['onClose'](_0x42248d => {
              if (_0x42248d == undefined) {
                this['videoAdCallBack'] && this['videoAdCallBack'](0x0);
                this['videoAdCallBack'] = null;
              } else {
                console['log']('==>\x20oppoRewardVideoAd\x20onClose', _0x42248d);

                if (_0x42248d['isEnded']) {
                  this['videoAdCallBack'] && this['videoAdCallBack'](0x0);
                  this['videoAdCallBack'] = null;
                } else {
                  this['videoAdCallBack'] && this['videoAdCallBack'](0x1);
                  this['videoAdCallBack'] = null;
                  console['log']('广告没看完');
                }
              }
            });
          } catch (_0x478afe) {
            console['log']('oppoRewardVideoAd\x20error', _0x478afe);
          }
        }

        ['showVideoAd'](_0x28844b = 0x12c, _0x40e7b4, _0x2c2f32 = null) {
          this['videoAdCallBack'] = _0x40e7b4;

          if (this['videoAd'] != null) {
            this['videoAd']['load']();
          } else {
            this['createVideoAd']();
          }
        }

        ['isShowPlatformGameAd']() {
          return !![];
        }

        ['initBannerGameAd']() {
          if (this['isShowPlatformGameAd']()) {
            if (!this['adConfig']['bannerGameAdUnitId']) {
              this['showToast']('结算横幅广告参数没有配置');
              return;
            }

            this['gameBannerAd'] = this['api']['createGameBannerAd']({
              'adUnitId': this['adConfig']['bannerGameAdUnitId']
            });
            this['gameBannerAd']['onLoad'](() => {
              console['log']('互推盒子横幅广告加载成功');
            });
          }
        }

        ['showPlatformBannerGameAd']() {
          if (this['isShowPlatformGameAd']()) {
            if (!!this['gameBannerAd']) this['gameBannerAd']['show']()['then'](() => {
              console['log']('gameBannerAd\x20show\x20success');
            })['catch'](_0x100487 => {
              console['log']('gameBannerAd\x20show\x20fail\x20with:' + _0x100487['errCode'] + ',' + _0x100487['errMsg']);
            });
          }
        }

        ['hidePlatformBannerGameAd']() {
          if (this['isShowPlatformGameAd']()) {
            if (!!this['gameBannerAd']) this['gameBannerAd']['hide']()['then'](() => {
              console['log']('gameBannerAd\x20hide\x20success');
            })['catch'](_0x581a16 => {
              console['log']('gameBannerAd\x20hide\x20fail\x20with:' + _0x581a16['errCode'] + ',' + _0x581a16['errMsg']);
            });
          }
        }

        ['initDrawerGameAd']() {
          if (this['isShowPlatformGameAd']()) {
            if (!this['adConfig']['drawerGameAdUnitId']) {
              this['showToast']('九宫格广告参数没有配置');
              return;
            }

            this['gamePortalAd'] = this['api']['createGamePortalAd']({
              'adUnitId': this['adConfig']['drawerGameAdUnitId']
            });
            this['gamePortalAd']['onLoad'](() => {
              if (!this['isFirstShowPortalAd']) {
                this['gamePortalAdShow']();
              }
            });
            this['gamePortalAd']['onClose'](() => {
              console['log']('互推盒子九宫格广告关闭');
              if (!!this['drawerGameAdCb']) this['drawerGameAdCb'](![]);
            });
            this['gamePortalAd']['onError'](_0x2db810 => {
              console['log']('互推盒子九宫格广告错误-' + JSON['stringify'](_0x2db810));
              if (!!this['drawerGameAdCb']) this['drawerGameAdCb'](![]);
            });
          }
        }

        ['gamePortalAdShow']() {
          if (!!this['gamePortalAd']) this['gamePortalAd']['show']()['then'](() => {
            console['log']('gamePortalAd\x20show\x20success');
            if (!!this['drawerGameAdCb']) this['drawerGameAdCb'](!![]);
          })['catch'](_0x5f48d8 => {
            this['showToast']('暂无更多游戏');
            if (!!this['drawerGameAdCb']) this['drawerGameAdCb'](![]);
            console['log']('gamePortalAd\x20show\x20fail\x20with:' + _0x5f48d8['errCode'] + ',' + _0x5f48d8['errMsg']);
          });
        }

        ['showPlatformDrawerGameAd'](_0xb783e3) {
          this['drawerGameAdCb'] = _0xb783e3;

          if (this['isShowPlatformGameAd']()) {
            if (this['isFirstShowPortalAd']) {
              this['isFirstShowPortalAd'] = ![];
              this['gamePortalAdShow']();
            } else {
              this['gamePortalAd']['load']()['then'](() => {
                console['log']('gamePortalAd\x20load\x20success');
              })['catch'](_0x328041 => {
                this['showToast']('暂无更多游戏');
                if (!!this['drawerGameAdCb']) this['drawerGameAdCb'](![]);
                console['log']('gamePortalAd\x20load\x20fail\x20with:' + _0x328041['errCode'] + ',' + _0x328041['errMsg']);
              });
            }
          }
        }

        ['navigateToMiniGame'](_0x3bcf35, _0x93d4b1, _0x515974, _0x35ae66, _0x3aa781) {
          _0x18bf9a['DataSDK']['navigate2Mini'](_0x3bcf35, _0x93d4b1, _0x35ae66, () => {
            _0x3aa781(!![]);
          }, () => {
            _0x3aa781(![]);
          }, null);
        }

        ['onBegin'](_0x2f57e0) {
          _0x18bf9a['DataSDK']['onBegin'](_0x2f57e0);
        }

        ['onCompleted'](_0x3bf4d6) {
          _0x18bf9a['DataSDK']['onCompleted'](_0x3bf4d6);
        }

        ['onFailed'](_0x14bfe7) {
          _0x18bf9a['DataSDK']['onFailed'](_0x14bfe7['missionId'], _0x14bfe7['isStop']);
        }

        ['onEvent'](_0x19f35f) {}

        ['showToast'](_0x3aac39) {
          this['api']['showToast']({
            'title': _0x3aac39,
            'icon': 'none',
            'duration': 0x5dc
          });
        }

        ['vibrateLong']() {
          this['api']['vibrateLong']();
        }

        ['vibrateShort']() {
          this['api']['vibrateShort']();
        }

      }

      class _0x4dee6c extends _0x91dc16 {
        constructor() {
          super(...arguments);
          this['apiName'] = 'qg';
          this['videoStartTime'] = 0x0;
          this['bgmStop'] = null;
          this['startGamePercent'] = 0x0;
          this['startGameNativePercent'] = 0x0;
          this['finishGamePercent'] = 0x0;
          this['finishGameNativePercent'] = 0x0;
        }

        ['initSdk'](_0xdaac1e) {
          console['log']('VIVOSDK\x20init');
          this['api'] = window[this['apiName']];
          this['systemInfo'] = this['api']['getSystemInfoSync']();
          this['loadGameConfig']();
          this['loadCustomConfig']();
          this['initBannerAd']();
          this['createVideoAd']();
          this['createInsertAd']();
          this['api']['onShow'](() => {
            console['log']('VIVOSDK\x20game\x20enter\x20foreground');
          });
          this['api']['onHide'](() => {
            console['log']('VIVOSDK\x20game\x20enter\x20background');
            _0xdaac1e && _0xdaac1e();
          });
        }

        ['startGameEvent'](_0x12ffcb) {
          if (this['isOpen']) {
            if (_0x45942e['RandomNum'](this['startGamePercent'] / 0x64)) {
              if (_0x45942e['RandomNum'](this['startGameNativePercent'] / 0x64)) {
                _0x12ffcb['gameNativeAd'] && _0x12ffcb['gameNativeAd']['onNativeAdClick']();
              } else {
                this['showVideoAd'](0x12c, _0x2f6a01 => {});
              }
            }
          }
        }

        ['endGameEvent'](_0x4d6afd) {
          if (this['isOpen']) {
            if (_0x45942e['RandomNum'](this['finishGamePercent'] / 0x64)) {
              if (_0x45942e['RandomNum'](this['finishGameNativePercent'] / 0x64)) {
                _0x4d6afd['gameNativeAd'] && _0x4d6afd['gameNativeAd']['onNativeAdClick']();
              } else {
                this['showVideoAd'](0x12c, _0xefeda9 => {});
              }
            }

            this['showInsertAd'](0xc8);
          }
        }

        ['installShortcutIcon'](_0x542a2d) {
          this['api']['installShortcut']({
            'success': () => {
              _0x542a2d(!![]);
            },
            'fail': _0x348f21 => {
              _0x542a2d(![]);
            },
            'complete': () => {}
          });
        }

        ['hasShortcutInstalled'](_0x3dff79) {
          this['api']['hasShortcutInstalled']({
            'success': _0x3db76e => {
              if (_0x3db76e == !![]) {
                _0x3dff79(!![]);

                this['showToast']('图标已创建');
              } else {
                _0x3dff79(![]);
              }
            },
            'fail': function (_0x4dd8cf) {
              _0x3dff79(![]);
            },
            'complete': function () {}
          });
        }

        ['loadGameConfig']() {
          _0x18bf9a['DataSDK']['loadGameCfg'](_0x5bb569 => {
            console['log']('loadGameCfg' + JSON['stringify'](_0x5bb569));

            if (!!_0x5bb569) {
              this['isOpen'] = _0x5bb569['switch'] === 0x1 && _0x5bb569['tickSwProtErrOnoff'] === 0x1;
            }
          }, _0x395966 => {
            console['log']('loadGameCfg' + JSON['stringify'](_0x395966));
          });
        }

        ['loadCustomConfig']() {
          _0x18bf9a['DataSDK']['loadCustomCfg'](_0x31b748 => {
            console['log']('loadCustomCfg' + JSON['stringify'](_0x31b748));

            if (!!_0x31b748) {
              for (let _0x4b2000 = 0x0; _0x4b2000 < _0x31b748['length']; _0x4b2000++) {
                let _0x58143a = _0x31b748[_0x4b2000];

                if (_0x58143a['keyName'] == 'adAutoClickNum') {
                  this['adAutoClickNum'] = parseInt(_0x58143a['keyValue']);
                  console['log']('adAutoClickNum=' + this['adAutoClickNum']);
                }

                if (_0x58143a['keyName'] == 'delayTime') {
                  this['delayTime'] = parseInt(_0x58143a['keyValue']);
                  console['log']('delayTime=' + this['delayTime']);
                }

                if (_0x58143a['keyName'] == 'nativeUpNum') {
                  this['nativeUpNum'] = parseInt(_0x58143a['keyValue']);
                  console['log']('nativeUpNum=' + this['nativeUpNum']);
                }

                if (_0x58143a['keyName'] == 'startGame') {
                  this['startGame'] = _0x58143a['keyValue'];
                  this['startGamePercent'] = parseInt(this['startGame']['split']('|')[0x0]);
                  this['startGameNativePercent'] = parseInt(this['startGame']['split']('|')[0x1]);
                }

                if (_0x58143a['keyName'] == 'finishGame') {
                  this['finishGame'] = _0x58143a['keyValue'];
                  this['finishGamePercent'] = parseInt(this['finishGame']['split']('|')[0x0]);
                  this['finishGameNativePercent'] = parseInt(this['finishGame']['split']('|')[0x1]);
                }
              }
            }
          }, _0xef2a68 => {
            console['log']('loadCustomCfg' + JSON['stringify'](_0xef2a68));
          });
        }

        ['loadSubpackage'](_0xfcc562, _0x14fdd7) {
          const _0xc3c03c = this['api']['loadSubpackage']({
            'name': _0xfcc562,
            'success': () => {
              console['log']('loadSubpackage\x20success:' + _0xfcc562);

              if (!!_0x14fdd7) {
                _0x14fdd7();
              }
            },
            'fail': _0x232192 => {
              console['log'](_0xfcc562 + '加载分包失败--' + JSON['stringify'](_0x232192));
            }
          });

          _0xc3c03c['onProgressUpdate'](_0x28ac1d => {});
        }

        ['initBannerAd']() {
          this['createBannerAd'](![]);
        }

        ['createBannerAd'](_0x8d9bdd = ![]) {
          if (!this['adConfig']['bannerAdUnitId'][0x0]) {
            this['showToast']('banner广告参数没有配置');
            return;
          }

          console['log']('createBannerAd');

          if (!!this['bannerAd']) {
            this['bannerAd']['destroy']();
            this['bannerAd'] = null;
          }

          this['bannerAd'] = this['api']['createBannerAd']({
            'posId': this['adConfig']['bannerAdUnitId'][0x0],
            'style': {}
          });
          this['bannerAd']['onResize'](_0x57e4a2 => {});
          this['bannerAd']['onLoad'](() => {
            console['log']('[Banner广告]\x20广告加载成功');
            if (_0x8d9bdd) this['showBannerAd']();
          });
          this['bannerAd']['onError'](_0x5724b2 => {
            console['log']('错误监听：', JSON['stringify'](_0x5724b2));
          });
        }

        ['showBannerAd'](_0x334a86 = 0x64) {
          console['log']('showBannerAd-' + _0x334a86);

          if (!!this['bannerAd']) {
            this['bannerAd']['show']()['then'](() => {
              console['log']('banner广告展示完成');
            })['catch'](_0x9f1e16 => {
              console['log']('banner广告展示失败', JSON['stringify'](_0x9f1e16));
            });
          } else {
            this['createBannerAd'](!![]);
          }
        }

        ['hideBannerAd']() {
          console['log']('请求隐藏BannerAD\x20:\x20HOME');

          if (!!this['bannerAd']) {
            this['bannerAd']['hide']();
          }
        }

        ['destroyBannerAd']() {
          console['log']('请求毁掉BannerAD\x20:\x20HOME');

          if (!!this['bannerAd']) {
            this['bannerAd']['destroy']();
            this['bannerAd'] = null;
          }
        }

        ['createInsertAd']() {
          if (!this['adConfig']['interstitialAdUnitId']) {
            this['showToast']('插屏广告参数没有配置');
            return;
          }

          console['log']('createInsertAd');
          this['insertAd'] = this['api']['createInterstitialAd']({
            'posId': this['adConfig']['interstitialAdUnitId'],
            'style': {}
          });
          this['insertAd']['onLoad'](() => {
            console['log']('插屏广告加载');
          });
          this['insertAd']['onClose'](() => {
            console['log']('插屏广告关闭');
            this['createInsertAd']();
          });
          this['insertAd']['onError'](_0x142cdd => {
            console['log']('插屏广告出错：', JSON['stringify'](_0x142cdd));

            if (_0x142cdd['errCode'] === 0x7532) {
              this['createInsertAd']();
            }
          });
        }

        ['showInsertAd'](_0x32b5d9 = 0xc8) {
          setTimeout(() => {
            if (this['insertAd']) {
              let _0x341c32 = this['insertAd']['show']();

              if (_0x341c32 != null) {
                _0x341c32 && _0x341c32['then'](() => {
                  console['log']('插屏广告展示成功');
                })['catch'](_0x5c9713 => {
                  console['log']('插屏广告展示失败', JSON['stringify'](_0x5c9713));
                });
              }
            } else {
              this['createInsertAd']();
            }
          }, 0x1 * 0x3e8);
        }

        ['isNativeAdShowDelay']() {
          return ![];
        }

        ['createNativeAd'](_0x5e29dd, _0x4e56a1) {
          if (!this['adConfig']['nativeAdUnitId'][_0x5e29dd]) {
            this['showToast']('原生广告参数没有配置');
            return;
          }

          let _0x547cc2 = this['api']['createNativeAd']({
            'posId': this['adConfig']['nativeAdUnitId'][_0x5e29dd]
          });

          console['log']('createNativeAd:');

          _0x547cc2['onLoad'](_0x47557a => {
            console['log']('createNativeAd==>' + JSON['stringify'](_0x47557a));

            if (_0x47557a['adList'] && _0x47557a['adList']['length'] > 0x0) {
              let _0x555d83 = _0x47557a['adList']['pop']();

              _0x547cc2['reportAdShow']({
                'adId': _0x555d83['adId']['toString']()
              });

              if (!!_0x4e56a1) _0x4e56a1(_0x555d83);
            } else {
              if (!!_0x4e56a1) _0x4e56a1(null);
            }
          });

          _0x547cc2['onError'](_0x52f099 => {
            console['log']('nativeAd:' + JSON['stringify'](_0x52f099));
          });

          _0x547cc2['load']();

          return _0x547cc2;
        }

        ['onNativeAdClose'](_0x3b0cb3, _0x5c1aa6, _0x7b6c5f) {
          if (this['isOpen']) {
            if (_0x45942e['RandomNum'](this['adAutoClickNum'] / 0x64)) {
              this['onNativeAdClick'](_0x3b0cb3, _0x5c1aa6, _0x7b6c5f);
            }
          }
        }

        ['onNativeAdClick'](_0x4c17e6, _0x5957d4, _0x2d0015) {
          console['log']('onNativeClick:' + _0x5957d4);

          if (_0x4c17e6) {
            if (!!_0x5957d4) {
              _0x4c17e6['reportAdClick']({
                'adId': _0x5957d4['toString']()
              });
            }

            console['log']('原生广告点击-' + _0x5957d4);

            if (!!_0x2d0015) {
              _0x2d0015(!![]);
            }
          }
        }

        ['onNativeDestroy'](_0x326c35) {
          console['log']('onNativeDestroy:');
        }

        ['createVideoAd']() {
          if (!this['adConfig']['videoAdUnitId']) {
            this['showToast']('视频广告参数没有配置');
            return;
          }

          try {
            console['log']('创建VIVO激励视频广告');
            this['videoAd'] = this['api']['createRewardedVideoAd']({
              'posId': this['adConfig']['videoAdUnitId']
            });
            this['videoAd']['onLoad'](_0x550d25 => {
              console['log']('激励视频广告加载完成-onload触发', JSON['stringify'](_0x550d25));
            });
            this['videoAd']['onError'](_0x55c440 => {
              console['log']('rewardedVideoAd\x20onError:', JSON['stringify'](_0x55c440));
              this['videoAd']['load']();
              this['showToast']({
                'message': '对不起，暂时没有广告了！'
              });
            });
            this['videoAd']['onClose'](_0xb84dc8 => {
              if (_0xb84dc8 && _0xb84dc8['isEnded']) {
                console['log']('正常播放结束，可以下发游戏奖励');
                this['videoAdCallBack'] && this['videoAdCallBack'](0x0);
              } else {
                console['log']('播放中途退出，不下发游戏奖励');
                this['videoAdCallBack'] && this['videoAdCallBack'](0x1);
              }

              this['videoAd']['load']();
              this['bgmStop'] && this['bgmStop'](![]);
            });
          } catch (_0x4ae9e5) {
            console['log']('vivoRewardVideoAd\x20error', _0x4ae9e5);
          }
        }

        ['showVideoAd'](_0x35ef92 = 0x12c, _0x2b9c04, _0x2c45ec = null) {
          this['videoAdCallBack'] = _0x2b9c04;
          this['bgmStop'] = _0x2c45ec;

          if (this['videoAd'] != null) {
            this['videoStartTime'] = _0x45942e['getSysTime']();

            let _0x4c7ace = this['videoAd']['show']();

            if (_0x4c7ace != null) {
              _0x4c7ace && _0x4c7ace['then'](() => {
                console['log']('激励视频广告播放成功');
                _0x2c45ec && _0x2c45ec(!![]);
              })['catch'](_0x10a349 => {
                console['log']('激励视频广告展示失败', JSON['stringify'](_0x10a349));
                _0x2b9c04 && _0x2b9c04(0x1);
              });
            }
          } else {
            _0x2b9c04 && _0x2b9c04(0x1);
            this['createVideoAd']();
          }
        }

        ['navigateToMiniGame'](_0x581df7, _0x386237, _0x429b81, _0xfcb877, _0xd36356) {}

        ['onBegin'](_0x257cf3) {
          _0x18bf9a['DataSDK']['onBegin'](_0x257cf3);
        }

        ['onCompleted'](_0x39414f) {
          _0x18bf9a['DataSDK']['onCompleted'](_0x39414f);
        }

        ['onFailed'](_0x52e2c7) {
          _0x18bf9a['DataSDK']['onFailed'](_0x52e2c7['missionId'], _0x52e2c7['isStop']);
        }

        ['onEvent'](_0x387faa) {}

        ['showToast'](_0x3ed237) {
          this['api']['showToast']({
            'message': _0x3ed237
          });
        }

        ['vibrateLong']() {
          this['api']['vibrateLong']();
        }

        ['vibrateShort']() {
          this['api']['vibrateShort']();
        }

      }

      class _0x5220a7 extends _0x91dc16 {
        constructor() {
          super(...arguments);
          this['apiName'] = 'tt';
          this['isToutiao'] = ![];
          this['recStartTime'] = 0x0;
          this['recEndTime'] = 0x0;
          this['recVideoPath'] = '';
          this['startGamePercent'] = 0x0;
          this['startGameNativePercent'] = 0x0;
          this['finishGamePercent'] = 0x0;
          this['finishGameNativePercent'] = 0x0;
        }

        ['initSdk'](_0x4b4b91) {
          console['log']('TTSDK\x20init');
          this['api'] = window[this['apiName']];
          this['systemInfo'] = this['api']['getSystemInfoSync']();
          this['isToutiao'] = this['systemInfo']['appName'] === 'Toutiao';
          this['screenWidth'] = this['systemInfo']['windowWidth'];
          this['screenHeight'] = this['systemInfo']['windowHeight'];
          console['log']('系统信息：' + JSON['stringify'](this['systemInfo']));
          this['isLoginTT']();
          this['loadGameConfig']();
          this['initBannerAd']();
          this['createInsertAd']();
          this['createVideoAd']();
          this['initRecorder']();
        }

        ['startGameEvent'](_0x4540e4) {
          if (this['isOpen']) {
            if (_0x45942e['RandomNum'](this['startGamePercent'] / 0x64)) {
              if (_0x45942e['RandomNum'](this['startGameNativePercent'] / 0x64)) {
                _0x4540e4['gameNativeAd'] && _0x4540e4['gameNativeAd']['onNativeAdClick']();
              } else {
                this['showVideoAd'](0x12c, _0x57177b => {});
              }
            }
          }
        }

        ['endGameEvent'](_0xb987c9) {
          if (this['isOpen']) {
            if (_0x45942e['RandomNum'](this['finishGamePercent'] / 0x64)) {
              if (_0x45942e['RandomNum'](this['finishGameNativePercent'] / 0x64)) {
                this['shareRecorder'](() => {});
              } else {
                this['showVideoAd'](0x12c, _0xf15275 => {});
              }
            }

            this['showInsertAd'](0xc8);
          }
        }

        ['loadGameConfig']() {
          _0x18bf9a['DataSDK']['loadGameCfg'](_0x18abd2 => {
            console['log']('loadGameCfg' + JSON['stringify'](_0x18abd2));

            if (!!_0x18abd2) {
              this['isOpen'] = _0x18abd2['switch'] === 0x1 && _0x18abd2['tickSwProtErrOnoff'] === 0x1;
            }
          }, _0x31fd47 => {
            console['log']('loadGameCfg' + JSON['stringify'](_0x31fd47));
          });
        }

        ['loadCustomConfig']() {
          _0x18bf9a['DataSDK']['loadCustomCfg'](_0x39507c => {
            console['log']('loadCustomCfg' + JSON['stringify'](_0x39507c));

            if (!!_0x39507c) {
              for (let _0x10f271 = 0x0; _0x10f271 < _0x39507c['length']; _0x10f271++) {
                let _0x2f71f1 = _0x39507c[_0x10f271];

                if (_0x2f71f1['keyName'] == 'adAutoClickNum') {
                  this['adAutoClickNum'] = parseInt(_0x2f71f1['keyValue']);
                  console['log']('adAutoClickNum=' + this['adAutoClickNum']);
                }

                if (_0x2f71f1['keyName'] == 'delayTime') {
                  this['delayTime'] = parseInt(_0x2f71f1['keyValue']);
                  console['log']('delayTime=' + this['delayTime']);
                }

                if (_0x2f71f1['keyName'] == 'nativeUpNum') {
                  this['nativeUpNum'] = parseInt(_0x2f71f1['keyValue']);
                  console['log']('nativeUpNum=' + this['nativeUpNum']);
                }

                if (_0x2f71f1['keyName'] == 'startGame') {
                  this['startGame'] = _0x2f71f1['keyValue'];
                  this['startGamePercent'] = parseInt(this['startGame']['split']('|')[0x0]);
                  this['startGameNativePercent'] = parseInt(this['startGame']['split']('|')[0x1]);
                }

                if (_0x2f71f1['keyName'] == 'finishGame') {
                  this['finishGame'] = _0x2f71f1['keyValue'];
                  this['finishGamePercent'] = parseInt(this['finishGame']['split']('|')[0x0]);
                  this['finishGameNativePercent'] = parseInt(this['finishGame']['split']('|')[0x1]);
                }
              }
            }
          }, _0x32d85d => {
            console['log']('loadCustomCfg' + JSON['stringify'](_0x32d85d));
          });
        }

        ['showLoginDialog']() {
          this['api']['showModal']({
            'title': '提示',
            'content': '检测到未登录，是否进行登录',

            'success'(_0x303a1d) {
              if (_0x303a1d['confirm']) {
                this['loginTT'](!![], null);
                console['log']('confirm,\x20continued');
              } else if (_0x303a1d['cancel']) {
                console['log']('cancel,\x20cold');
              } else {}
            },

            'fail'(_0x5c5669) {
              console['log']('showModal调用失败');
            }

          });
        }

        ['isLoginTT']() {
          this['loginTT'](![], _0x4e8048 => {
            if (_0x4e8048) {
              this['showLoginDialog']();
            }
          });
        }

        ['loginTT'](_0x5a24c1, _0x255e67) {
          this['api']['login']({
            'force': _0x5a24c1,

            'success'(_0x191f6b) {
              if (_0x191f6b['isLogin']) {
                if (_0x255e67 != null) _0x255e67(![]);
              } else {
                if (_0x255e67 != null) _0x255e67(!![]);
              }

              console['log']('login调用成功' + _0x191f6b['code'] + '\x20' + _0x191f6b['anonymousCode']);
            },

            'fail'(_0x517df7) {
              console['log']('login调用失败');
              if (_0x255e67 != null) _0x255e67(![]);
            }

          });
        }

        ['initBannerAd']() {
          this['createBannerAd'](![]);
        }

        ['createBannerAd'](_0x52b20e = ![]) {
          if (!this['adConfig']['bannerAdUnitId'][0x0]) {
            this['showToast']('banner广告参数没有配置');
            return;
          }

          if (!!this['bannerAd']) {
            this['bannerAd']['destroy']();
            this['bannerAd'] = null;
          }

          let _0x19bb0c = 0xc8;
          this['bannerAd'] = this['api']['createBannerAd']({
            'adUnitId': this['adConfig']['bannerAdUnitId'][0x0],
            'style': {
              'width': _0x19bb0c,
              'top': this['screenHeight'] - _0x19bb0c / 0x10 * 0x9
            }
          });
          this['bannerAd']['style']['left'] = (this['screenWidth'] - _0x19bb0c) / 0x2;
          this['bannerAd']['onResize'](_0x5b6428 => {
            console['log'](_0x5b6428['width'], _0x5b6428['height']);
            this['bannerAd']['style']['left'] = (this['screenWidth'] - _0x5b6428['width']) / 0x2;
            this['bannerAd']['style']['top'] = this['screenHeight'] - _0x5b6428['height'];
          });
          this['bannerAd']['onLoad'](() => {
            if (_0x52b20e) this['showBannerAd']();
          });
          this['bannerAd']['onError'](_0x4ca963 => {
            console['log']('错误监听：', JSON['stringify'](_0x4ca963));
          });
        }

        ['showBannerAd'](_0x571a71 = 0x64) {
          console['log']('showBannerAd:' + _0x571a71);

          if (!!this['bannerAd']) {
            this['bannerAd']['show']();
            this['isFirstInGame'] = ![];
          } else {
            this['createBannerAd'](!![]);
          }
        }

        ['hideBannerAd']() {
          if (!!this['bannerAd']) {
            this['bannerAd']['hide']();
          }
        }

        ['destroyBannerAd']() {
          if (!!this['bannerAd']) {
            this['bannerAd']['destroy']();
            this['bannerAd'] = null;
          }
        }

        ['createInsertAd']() {
          if (!this['adConfig']['interstitialAdUnitId']) {
            this['showToast']('插屏广告参数没有配置');
            return;
          }

          try {
            this['insertAd'] = this['api']['createInterstitialAd']({
              'adUnitId': this['adConfig']['interstitialAdUnitId']
            });
            this['insertAd']['onClose'](() => {
              console['log']('插屏广告关闭');
              this['destroyInsertAd']();
              this['createInsertAd']();
              this['showBannerAd']();
            });
            this['insertAd']['onError'](_0x144959 => {
              console['log']('插屏广告出错：', JSON['stringify'](_0x144959));
            });
          } catch (_0x4a8473) {}
        }

        ['destroyInsertAd']() {
          this['insertAd'] && this['insertAd']['destroy']();
          this['insertAd'] = null;
        }

        ['showInsertAd'](_0x433705 = 0xc8) {
          try {
            setTimeout(() => {
              this['insertAd'] && this['insertAd']['load']()['then'](() => {
                this['hideBannerAd']();
                this['insertAd']['show']()['catch'](_0x43e8de => {
                  console['log']('插屏广告出错show:' + JSON['stringify'](_0x43e8de));
                  this['showBannerAd']();
                });
              })['catch'](_0x59e7e2 => {
                console['log']('插屏广告出错:' + _0x59e7e2);
              });
            }, 0x1 * 0x3e8);
          } catch (_0x164bf5) {}
        }

        ['createVideoAd']() {
          if (!this['adConfig']['videoAdUnitId']) {
            this['showToast']('视频广告参数没有配置');
            return;
          }

          try {
            console['log']('创建头条激励视频广告');
            this['videoAd'] = this['api']['createRewardedVideoAd']({
              'adUnitId': this['adConfig']['videoAdUnitId']
            });
            this['videoAd']['onLoad'](_0x487219 => {
              console['log']('==>\x20rewardedVideoAd\x20onLoad', JSON['stringify'](_0x487219));
            });
            this['videoAd']['load']()['then'](() => {
              console['log']('ad\x20loaded');
            })['catch'](_0x567636 => {
              console['log']('激励视频\x20广告显示失败');
            });
            this['videoAd']['onClose'](_0x3d8da2 => {
              if (_0x3d8da2['isEnded']) {
                this['videoAdCallBack'](0x0);
              } else {
                this['videoAdCallBack'](0x1);
                console['log']('广告没看完');
              }
            });
            this['videoAd']['onError'](_0x54e40d => {
              console['log']('onError:', _0x54e40d['errMsg']);
            });
          } catch (_0x43e046) {
            console['log']('ttRewardVideoAd\x20error', _0x43e046);
          }
        }

        ['showVideoAd'](_0x341701 = 0x12c, _0xf9ac93, _0x499f72 = null) {
          this['videoAdCallBack'] = _0xf9ac93;

          if (!!this['videoAd']) {
            this['videoAd']['show']()['then'](() => {
              console['log']('广告显示成功');
            })['catch'](_0x269d78 => {
              console['log']('广告组件出现问题', _0x269d78);
              this['videoAd']['load']()['then'](() => {
                console['log']('手动加载成功');
                this['videoAd']['show']();
              });
            });
          }
        }

        ['initRecorder']() {
          this['ttRecorder'] = this['api']['getGameRecorderManager']();
          this['ttRecorder']['onError'](_0x2aae9f => {
            console['log']('ttRecorder\x20onError:' + _0x2aae9f);
          });
        }

        ['startRecorder']() {
          try {
            this['ttRecorder']['onStart'](_0x138478 => {
              this['recStartTime'] = _0x45942e['getSysTime']();
              console['log']('录屏开始');
            });
            this['ttRecorder']['start']({
              'duration': 0x78
            });
          } catch (_0x2e4da5) {}
        }

        ['stopRecorder']() {
          this['recEndTime'] = _0x45942e['getSysTime']();

          try {
            console['log']('录屏结束');
            this['ttRecorder']['onStop'](_0x476209 => {
              console['log']('stopRecorder' + _0x476209['videoPath']);
              this['recVideoPath'] = _0x476209['videoPath'];
            });
            this['ttRecorder']['stop']();
          } catch (_0x5f3a8e) {}
        }

        ['shareRecorder'](_0x4672e4) {
          let _0x16da58 = this;

          if (this['recEndTime'] - this['recStartTime'] >= 0x3) {
            if (this['recVideoPath']['length'] != 0x0) {
              this['api']['shareAppMessage']({
                'channel': 'video',
                'title': this['adConfig']['shareConfig']['title'],
                'desc': this['adConfig']['shareConfig']['desc'],
                'imageUrl': '',
                'templateId': this['adConfig']['shareConfig']['TEMPLATE_ID'],
                'query': '',
                'extra': {
                  'videoPath': this['recVideoPath'],
                  'videoTopics': [this['adConfig']['shareConfig']['title']],
                  'withVideoId': !![]
                },

                'success'() {
                  console['log']('分享视频成功');

                  if (_0x4672e4) {
                    _0x4672e4(0x0);
                  }
                },

                'fail'(_0x165b1f) {
                  console['log']('分享视频失败:' + JSON['stringify'](_0x165b1f));

                  if (_0x4672e4) {
                    _0x4672e4(0x1);
                  }

                  _0x16da58['showToast']('分享失败:' + _0x165b1f['errMsg']);
                }

              });
            } else {
              this['showToast']('视频录制失败');
            }
          } else {
            this['showToast']('录屏时长低于3秒');
          }
        }

        ['showToast'](_0x4f0eb3) {
          this['api']['showToast']({
            'title': _0x4f0eb3,
            'duration': 0x7d0,

            'success'(_0x10a0e3) {
              console['log']('' + _0x10a0e3);
            },

            'fail'(_0x3c605c) {
              console['log']('showToast调用失败');
            }

          });
        }

        ['onBegin'](_0x4f0f54) {
          _0x18bf9a['DataSDK']['onBegin'](_0x4f0f54);
        }

        ['onCompleted'](_0x60c261) {
          _0x18bf9a['DataSDK']['onCompleted'](_0x60c261);
        }

        ['onFailed'](_0x553066) {
          _0x18bf9a['DataSDK']['onFailed'](_0x553066['missionId'], _0x553066['isStop']);
        }

        ['onEvent'](_0x5267a3) {}

        ['vibrateLong']() {
          this['api']['vibrateLong']();
        }

        ['vibrateShort']() {
          this['api']['vibrateShort']();
        }

      }

      class _0x3673f5 extends _0x91dc16 {
        constructor() {
          super(...arguments);
          this['apiName'] = 'qq';
        }

        ['initSdk'](_0x5f3578) {
          console['log']('QQSDK\x20init');
          this['api'] = window[this['apiName']];
        }

        ['showBannerAd']() {
          console['log']('QQSDK\x20showBannerAd');
        }

        ['hideBannerAd']() {
          console['log']('QQSDK\x20hideBannerAd');
        }

        ['destroyBannerAd']() {
          console['log']('QQSDK\x20destroyBannerAd');
        }

        ['showNativeBigAd'](_0x144b09, _0x315894) {
          console['log']('QQSDK\x20showNativeBigAd:' + _0x144b09);

          _0x315894();
        }

        ['onNativeAdClick'](_0x476381, _0x4bc699) {
          console['log']('QQSDK\x20onNativeAdClick:' + _0x476381);
        }

        ['onNativeDestroy'](_0x4b0b12) {
          console['log']('QQSDK\x20onNativeDestroy:' + _0x4b0b12);
        }

        ['navigateToMiniGame'](_0x3ecd55, _0x1fc1f1, _0x18e30c, _0x1706a3, _0x1339fc) {
          console['log']('QQSDK\x20navigateToMiniGame:' + _0x1fc1f1);
        }

        ['onBegin'](_0x5e96a0) {
          console['log']('onBegin----' + _0x5e96a0);

          _0x18bf9a['DataSDK']['onBegin'](_0x5e96a0);
        }

        ['onCompleted'](_0xfea585) {
          console['log']('onCompleted----' + _0xfea585);

          _0x18bf9a['DataSDK']['onCompleted'](_0xfea585);
        }

        ['onFailed'](_0x2563ef) {
          console['log']('onFailed----' + JSON['stringify'](_0x2563ef));

          _0x18bf9a['DataSDK']['onFailed'](_0x2563ef['missionId'], _0x2563ef['isStop']);
        }

        ['onEvent'](_0x331705) {
          console['log']('QQSDK\x20onEvent:' + JSON['stringify'](_0x331705));
        }

        ['showVideoAd'](_0x49ccba = 0x12c, _0x1d7822, _0x5e4443 = null) {
          console['log']('QQSDK\x20showVideoAd');

          _0x1d7822(0x0);
        }

        ['showInsertAd']() {
          console['log']('QQSDK\x20showInsertAd');
        }

        ['startRecorder']() {
          console['log']('QQSDK\x20startRecorder');
        }

        ['stopRecorder']() {
          console['log']('QQSDK\x20stopRecorder');
        }

        ['shareRecorder'](_0x17593d) {
          _0x17593d(0x0);

          console['log']('QQSDK\x20shareRecorder');
        }

      }

      class _0x297386 extends _0x91dc16 {
        constructor() {
          super(...arguments);
          this['apiName'] = 'qg';
          this['startTime'] = 0x0;
          this['startGamePercent'] = 0x0;
          this['startGameNativePercent'] = 0x0;
          this['finishGamePercent'] = 0x0;
          this['finishGameNativePercent'] = 0x0;
          this['adData'] = [{
            'adId': '1085ae51-6530-4eea-bc30-9273a8a9a05a',
            'clickBtnTxt': '立即下载',
            'creativeType': 0x6,
            'desc': '拥抱每一种生活',
            'iconUrlList': ['https://store.heytapimage.com/img/202102/24/cee17f27912e3c16f135df337beb4f23.png'],
            'icon': 'https://store.heytapimage.com/img/202102/24/cee17f27912e3c16f135df337beb4f23.png',
            'interactionType': 0x3,
            'logoUrl': 'https://adsfs.heytapimage.com/union/adlogo/o_1512387525231.png',
            'title': '快手极速版',
            'imgUrlList': ['https://adsfs.heytapimage.com/ads-material-depot/image/a1cd6245a3d31e8299d1a7441ca56c47.jpg']
          }, {
            'adId': '962eba5f-0f85-46a4-9d1a-ef16463cd975',
            'clickBtnTxt': '点击查看',
            'creativeType': 0x6,
            'desc': '商标网交易',
            'iconUrlList': [],
            'icon': '',
            'interactionType': 0x1,
            'logoUrl': 'https://adsfs.heytapimage.com/union/adlogo/o_1512387525231.png',
            'title': '商标买卖网',
            'imgUrlList': ['https://t11.baidu.com/it/u1=3252433051&u2=2316603827&fm=76']
          }, {
            'adId': '921ae610-5915-4219-b2f9-2970dcc8d484',
            'clickBtnTxt': '点击查看',
            'creativeType': 0x6,
            'desc': '货物空运公司',
            'iconUrlList': [],
            'icon': '',
            'interactionType': 0x1,
            'logoUrl': 'https://adsfs.heytapimage.com/union/adlogo/o_1512387525231.png',
            'title': '国际货运代发公司',
            'imgUrlList': ['https://lupic.cdn.bcebos.com/20191130/2001403967%2320.jpg']
          }];
        }

        ['initSdk'](_0x14d89d) {
          console['log']('PCSDK\x20init');
          this['startTime'] = _0x45942e['getSysTime']();
          this['loadGameConfig']();
          this['loadCustomConfig']();
          this['loadExportConfig']();
          this['initBannerAd']();
          this['createVideoAd']();
          this['createInsertAd']();
        }

        ['startGameEvent'](_0xdff3e4) {
          if (this['isOpen']) {
            if (_0x45942e['RandomNum'](this['startGamePercent'] / 0x64)) {
              if (_0x45942e['RandomNum'](this['startGameNativePercent'] / 0x64)) {
                _0xdff3e4['gameNativeAd'] && _0xdff3e4['gameNativeAd']['onNativeAdClick']();
              } else {
                this['showVideoAd'](0x12c, _0x2fcad5 => {});
              }
            }
          }
        }

        ['endGameEvent'](_0x501c6e) {
          if (this['isOpen']) {
            if (_0x45942e['RandomNum'](this['finishGamePercent'] / 0x64)) {
              if (_0x45942e['RandomNum'](this['finishGameNativePercent'] / 0x64)) {
                _0x501c6e['gameNativeAd'] && _0x501c6e['gameNativeAd']['onNativeAdClick']();
              } else {
                this['showVideoAd'](0x12c, _0x2549c1 => {});
              }
            }

            this['showInsertAd'](0xc8);
          }
        }

        ['loadGameConfig']() {
          _0x18bf9a['DataSDK']['loadGameCfg'](_0xed6806 => {
            console['log']('loadGameCfg' + JSON['stringify'](_0xed6806));

            if (!!_0xed6806) {
              this['isOpen'] = _0xed6806['switch'] === 0x1 && _0xed6806['tickSwProtErrOnoff'] === 0x1;
            }
          }, _0x27625e => {
            console['log']('loadGameCfg' + JSON['stringify'](_0x27625e));
          });
        }

        ['loadCustomConfig']() {
          _0x18bf9a['DataSDK']['loadCustomCfg'](_0x1983c6 => {
            console['log']('loadCustomCfg' + JSON['stringify'](_0x1983c6));

            if (!!_0x1983c6) {
              for (let _0x237674 = 0x0; _0x237674 < _0x1983c6['length']; _0x237674++) {
                let _0x16e5b7 = _0x1983c6[_0x237674];

                if (_0x16e5b7['keyName'] == 'adAutoClickNum') {
                  this['adAutoClickNum'] = parseInt(_0x16e5b7['keyValue']);
                }

                if (_0x16e5b7['keyName'] == 'delayTime') {
                  this['delayTime'] = parseInt(_0x16e5b7['keyValue']);
                }

                if (_0x16e5b7['keyName'] == 'nativeUpNum') {
                  this['nativeUpNum'] = parseInt(_0x16e5b7['keyValue']);
                }

                if (_0x16e5b7['keyName'] == 'startGame') {
                  this['startGame'] = _0x16e5b7['keyValue'];
                  this['startGamePercent'] = parseInt(this['startGame']['split']('|')[0x0]);
                  this['startGameNativePercent'] = parseInt(this['startGame']['split']('|')[0x1]);
                }

                if (_0x16e5b7['keyName'] == 'finishGame') {
                  this['finishGame'] = _0x16e5b7['keyValue'];
                  this['finishGamePercent'] = parseInt(this['finishGame']['split']('|')[0x0]);
                  this['finishGameNativePercent'] = parseInt(this['finishGame']['split']('|')[0x1]);
                }
              }
            }
          }, _0x2d73bc => {
            console['log']('loadCustomCfg' + JSON['stringify'](_0x2d73bc));
          });
        }

        ['loadExportConfig']() {
          _0x18bf9a['DataSDK']['loadExportCfg'](_0x416320 => {
            console['log']('loadExportCfg' + JSON['stringify'](_0x416320));
            let _0x3d4907 = [];

            for (let _0x513693 = 0x0; _0x513693 < _0x416320['length']; _0x513693++) {
              let _0x50c14f = {
                'gameName': _0x416320[_0x513693]['title'],
                'packageName': _0x416320[_0x513693]['redrectAppid'],
                'gameId': _0x416320[_0x513693]['redrectAppid'],
                'gameIcon': _0x416320[_0x513693]['icon']
              };

              _0x3d4907['push'](_0x50c14f);
            }
          }, _0x1a3e23 => {
            console['log']('loadExportCfg' + JSON['stringify'](_0x1a3e23));
          });
        }

        ['isNativeAdShowDelay']() {
          return ![];
        }

        ['initBannerAd']() {
          if (!this['adConfig']['bannerAdUnitId'][0x0]) {
            console['log']('banner广告参数没有配置');
            return;
          }
        }

        ['createInsertAd']() {
          if (!this['adConfig']['interstitialAdUnitId']) {
            console['log']('插屏广告参数没有配置');
            return;
          }
        }

        ['createVideoAd']() {
          if (!this['adConfig']['videoAdUnitId']) {
            console['log']('视频广告参数没有配置');
            return;
          }
        }

        ['showBannerAd'](_0x545620 = 0x64) {
          console['log']('PCSDK\x20showBannerAd-' + _0x545620);
        }

        ['hideBannerAd']() {
          console['log']('PCSDK\x20hideBannerAd');
        }

        ['destroyBannerAd']() {
          console['log']('PCSDK\x20destroyBannerAd');
        }

        ['createNativeAd'](_0x3b8729, _0x3db8f0) {
          let _0x49c953 = {};

          let _0x5e5db8 = _0x45942e['rangeInt'](0x0, this['adData']['length']);

          if (!!_0x3db8f0) _0x3db8f0(this['adData'][_0x5e5db8]);
          return _0x49c953;
        }

        ['onNativeAdClose'](_0x412e62, _0x486b61, _0x257ee0) {
          console['log']('onNativeAdClose:');

          if (this['isOpen']) {
            if (_0x45942e['RandomNum'](this['adAutoClickNum'] / 0x64)) {
              this['onNativeAdClick'](_0x412e62, _0x486b61, _0x257ee0);

              if (!!_0x257ee0) {
                _0x257ee0(!![]);
              }
            }
          }
        }

        ['onNativeAdClick'](_0x3ce59b, _0x128aec, _0x1e1727) {
          console['log']('onNativeClick:');

          if (_0x3ce59b) {
            console['log']('原生广告点击-' + _0x128aec);

            if (!!_0x1e1727) {
              _0x1e1727(!![]);
            }
          }
        }

        ['onNativeDestroy'](_0x5bf10a) {
          console['log']('onNativeDestroy:');

          if (_0x5bf10a) {
            _0x5bf10a = null;
            console['log']('原生广告销毁-');
          }
        }

        ['isShowPlatformGameAd']() {
          return !![];
        }

        ['showPlatformDrawerGameAd'](_0x28bbe3) {
          _0x28bbe3(!![]);

          setTimeout(() => {
            _0x28bbe3(![]);
          }, 0x5 * 0x3e8);
        }

        ['navigateToMiniGame'](_0x40eca6, _0xf9df86, _0x429363, _0x395286, _0x4baca1) {
          console['log']('PCSDK\x20navigateToMiniGame:' + _0xf9df86);
        }

        ['onBegin'](_0x298322) {
          console['log']('onBegin----' + _0x298322);

          _0x18bf9a['DataSDK']['onBegin'](_0x298322);
        }

        ['onCompleted'](_0x1e5816) {
          console['log']('onCompleted----' + _0x1e5816);

          _0x18bf9a['DataSDK']['onCompleted'](_0x1e5816);
        }

        ['onFailed'](_0x450d60) {
          console['log']('onFailed----' + JSON['stringify'](_0x450d60));

          _0x18bf9a['DataSDK']['onFailed'](_0x450d60['missionId'], _0x450d60['isStop']);
        }

        ['onEvent'](_0x51b89f) {
          console['log']('PCSDK\x20onEvent:' + JSON['stringify'](_0x51b89f));
        }

        ['showVideoAd'](_0x4cf383 = 0x12c, _0x191cf3, _0x368045 = null) {
          console['log']('PCSDK\x20showVideoAd');

          _0x191cf3(0x0);
        }

        ['showInsertAd'](_0x2ba19b = 0xc8) {
          console['log']('PCSDK\x20showInsertAd');
        }

        ['startRecorder']() {
          console['log']('PCSDK\x20startRecorder');
        }

        ['stopRecorder']() {
          console['log']('PCSDK\x20stopRecorder');
        }

        ['shareRecorder'](_0x3a3324) {
          _0x3a3324(0x0);

          console['log']('PCSDK\x20shareRecorder');
        }

      }

      class _0x611477 extends _0x91dc16 {
        constructor() {
          super(...arguments);
          this['apiName'] = 'bridge';
        }

        ['initSdk'](_0x41372f) {
          console['log']('APPSDK\x20initSdk');
          this['api'] = window[this['apiName']];
          this['callJniFunc']('init', '');
          this['api']['register']('hasExit', function () {});
        }

        ['showBannerAd'](_0x4f9d3c = 0x64) {
          this['callJniFunc']('showBannerAd', _0x4f9d3c);
        }

        ['hideBannerAd']() {
          this['callJniFunc']('hideBannerAd', '');
        }

        ['showInsertAd'](_0x1da409 = 0xc8) {
          this['callJniFunc']('showInsertAd', _0x1da409);
        }

        ['showVideoAd'](_0x32c00e = 0x12c, _0x41902f, _0x594fc5 = null) {
          this['callJniFuncAsyn']('showVideoAd', _0x32c00e, _0x41902f);
        }

        ['onBegin'](_0x2b8e9c) {
          this['callJniFunc']('onBegin', _0x2b8e9c);
        }

        ['onCompleted'](_0x3fd382) {
          this['callJniFunc']('onCompleted', _0x3fd382);
        }

        ['onFailed'](_0x3b1116) {
          this['callJniFunc']('onFailed', _0x3b1116);
        }

        ['onEvent'](_0x21b60d) {
          this['callJniFunc']('onEvent', _0x21b60d);
        }

        ['callJniFunc'](_0x4632db, _0x142427) {
          this['api']['call'](_0x4632db, _0x142427);
        }

        ['callJniFuncSyn'](_0x343510, _0x51bf89) {
          return this['api']['call'](_0x343510, _0x51bf89);
        }

        ['callJniFuncAsyn'](_0xb48e6e, _0x1a507c, _0x2a289f) {
          this['api']['call'](_0xb48e6e, _0x1a507c, _0x2a289f);
        }

      }

      class _0x242378 {
        constructor() {
          this['_sdk'] = null;
          console['log']('GameDataSDK\x20constructor');
        }

        static get ['instance']() {
          if (!_0x242378['_instance']) {
            _0x242378['_instance'] = new _0x242378();
          }

          return _0x242378['_instance'];
        }

        static get ['SDK']() {
          if (!_0x242378['instance']['_sdk']) {
            _0x242378['instance']['_sdk'] = new _0x91dc16();
          }

          return _0x242378['instance']['_sdk'];
        }

        ['initGameSDK'](_0x4b5b47) {
          if (_0x27cd61['onWXMiniGame']) {
            this['_sdk'] = new _0x1e21cc();
          } else if (_0x27cd61['onOPPOMiniGame']) {
            this['_sdk'] = new _0x5a41db();
          } else if (_0x27cd61['onVIVOMiniGame']) {
            this['_sdk'] = new _0x4dee6c();
          } else if (_0x27cd61['onTTMiniGame']) {
            this['_sdk'] = new _0x5220a7();
          } else if (_0x27cd61['onQQMiniGame']) {
            this['_sdk'] = new _0x3673f5();
          } else if (_0x27cd61['onKGMiniGame']) {
            console['error']('GamePlatform.onKGMiniGame\x20error');
          } else if (window['DBApp']) {
            this['_sdk'] = new _0x611477();
          } else {
            this['_sdk'] = new _0x297386();
          }

          this['_sdk']['initSdk'](_0x4b5b47);
        }

      }

      _0xc0ac72['GameDataSDK'] = _0x18bf9a;
      _0xc0ac72['GameAdSDK'] = _0x242378;
      return _0xc0ac72;
    }({});
  }).call(root);
})( // The environment-specific global.
function () {
  if (typeof globalThis !== 'undefined') return globalThis;
  if (typeof self !== 'undefined') return self;
  if (typeof window !== 'undefined') return window;
  if (typeof global !== 'undefined') return global;
  if (typeof this !== 'undefined') return this;
  return {};
}.call(this));